PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#SCKTCUOIKI0006. In các số nguyên từ 1 đến n (Print Integers from 1 to N)
Bài tập này chưa được xếp vào lộ trình.
Mục lục đề ⌄
Đang đọc
In các số nguyên từ 1 đến n (Print Integers from 1 to N)
Print Integers from 1 to N
**Version: Phuoc Hung OJ Extended
Problem Statement
Given a positive integer , print every integer from through , inclusive, in increasing order. Print one integer per line.
Input
The only line contains the integer .
Output
Print exactly lines; line contains the integer for .
Subtasks
- Subtask 1 (20 points): .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): .
Examples
Input
5
Output
1
2
3
4
5
Explanation
For , the numbers are , , , , and . Each must be printed on its own line, giving exactly five output lines.
Liên quan
Trong các cuộc thi sau: