

Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 点
問題文
つの整数 , , が与えられます。
以上 以下の整数からなる長さ の数列 であって、 以下の条件を満たすものをひとつ求めてください。 なお、制約の項で記述される条件のもとで、このような数列は必ず存在することが証明できます。
- を満たす整数の組 であって、 を満たすものはちょうど 個ある。
制約
- 入力値はすべて整数である。
入力
入力は以下の形式で標準入力から与えられる。
出力
条件を満たす数列を以下の形式で出力せよ。
入力例 1Copy
4 2 3
出力例 1Copy
1 2 3 4
問題文の条件を満たす は と の 個あります。
入力例 2Copy
5 3 100
出力例 2Copy
50 50 50 30 70
Score : points
Problem Statement
Given are three integers , , and .
Find a sequence of integers between and (inclusive) that satisfies the condition below. We can prove that, under the conditions in Constraints, such a sequence always exists.
- There are exactly pairs of integers such that and .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print a sequence satisfying the condition, in the following format:
Sample Input 1Copy
4 2 3
Sample Output 1Copy
1 2 3 4
Two pairs and satisfy the condition in the statement.
Sample Input 2Copy
5 3 100
Sample Output 2Copy
50 50 50 30 70