No.1499 羊が、何匹だっけ
問題文最終更新日: 2021-04-13 21:47:21
English (AI translation)
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
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.
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もしくは右上の雲マークをクリックしてアカウントを作成してください。
Nachia
Kazun