問題一覧 > 通常問題

No.1499 羊が、何匹だっけ

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 334
作問者 : 👑 Nachia / テスター : 👑 Kazun
お気に入りにしたユーザー ProblemId : 6115 / 自分の提出
問題文最終更新日: 2021-04-13 21:47:21
How Many Sheep Was It Again?
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Show the original
yukicoder contest 294 (順位表) の他の問題:

Problem Statement

You are given $T$ inputs of the form "Hitsuji ga $N$ hiki" ( $N$ is a positive integer). For each of them, replace $N$ with $N+1$.

Input

The input is given from standard input in the following format.
$T$
$input_1$
$input_2$
$ \vdots $
$input_T$

Each $input_i\ (1 \leq i \leq T)$ is given in the following format.

Hitsuji ga $N$ hiki

The input satisfies the following constraints.

  • $T$ is an integer, $1 \le T \le 100$
  • $N$ is an integer, $1 \le N \leq 100$
  • Output

    Output $T$ lines.
    On the $i\ (1 \leq i \leq T)$-th line, output the answer for the input $input_i$.
    Print a newline at the end.

    Sample

    Sample 1
    Input
    4
    Hitsuji ga 1 hiki
    Hitsuji ga 2 hiki
    Hitsuji ga 100 hiki
    Hitsuji ga 99 hiki
    
    Output
    Hitsuji ga 2 hiki
    Hitsuji ga 3 hiki
    Hitsuji ga 101 hiki
    Hitsuji ga 100 hiki
    

    $N$ may differ from line to line.

    提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。