#abc281a. A - Count Down

A - Count Down

Score : 100100 points

问题描述

以降序打印所有不大于 NN 的非负整数。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

Print all non-negative integers less than or equal to NN in descending order.

Constraints

  • 1N1001 \leq N \leq 100
  • NN is an integer.

Input

The input is given from Standard Input in the following format:

NN

Output

Print XX lines, where XX is the number of non-negative integers less than or equal to NN.
For each i=1,2,,Xi=1, 2, \ldots, X, the ii-th line should contain the ii-th greatest non-negative integer less than or equal to NN.

Sample Input 1

3

Sample Output 1

3
2
1
0

We have four non-negative integers less than or equal to 33, which are 00, 11, 22, and 33.
To print them in descending order, print 33 in the first line, 22 in the second, 11 in the third, and 00 in the fourth.

Sample Input 2

22

Sample Output 2

22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0

update @ 2024/3/10 11:47:48