

Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 点
問題文
以下の非負整数を大きい方から順にすべて出力してください。
制約
- は整数
入力
入力は以下の形式で標準入力から与えられる。
出力
以下の非負整数が 個存在するとき、 行出力せよ。
に対し、 行目には 以下の非負整数のうち大きい方から 番目のものを出力せよ。
入力例 1Copy
3
出力例 1Copy
3 2 1 0
以下の非負整数は の 個です。
行目に を、 行目に を、 行目に を、 行目に を出力することでこれらを大きい方から順に出力したことになります。
入力例 2Copy
22
出力例 2Copy
22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Score : points
Problem Statement
Print all non-negative integers less than or equal to in descending order.
Constraints
- is an integer.
Input
The input is given from Standard Input in the following format:
Output
Print lines, where is the number of non-negative integers less than or equal to .
For each , the -th line should contain the -th greatest non-negative integer less than or equal to .
Sample Input 1Copy
3
Sample Output 1Copy
3 2 1 0
We have four non-negative integers less than or equal to , which are , , , and .
To print them in descending order, print in the first line, in the second, in the third, and in the fourth.
Sample Input 2Copy
22
Sample Output 2Copy
22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0