#CCBCHHAI0000001. In ít nhất một lần (Print at Least Once)
In ít nhất một lần (Print at Least Once)
Print at Least Once
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given a nonnegative integer , print in decreasing order, one number per line. If , still print one line containing .
Input
One line contains the integer .
Output
Print lines in decreasing order from to .
Subtasks
- Subtask 1 (20%): .
- Subtask 2 (30%): .
- Subtask 3 (50%): .
Examples
Example 1
Input
0
Output
0
Explanation
The first pass prints 0, then decrements to -1. The next condition is false.
Example 2
Input
3
Output
3
2
1
0
Explanation
The loop prints 3, 2, 1, 0; after printing 0, it decrements to -1 and stops.