#CCBCHBON0000029. Chỉ dừng vòng trong (Stop Only the Inner Loop)
Chỉ dừng vòng trong (Stop Only the Inner Loop)
Stop Only the Inner Loop
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Print exactly lines; line contains 1 through , separated by single spaces and with no trailing space. Breaking the inner loop after printing must not stop the outer loop.
Input
One integer .
Output
Exactly lines, as specified.
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
1
Output:
1
Explanation:
Line i contains exactly 1 through i; the outer loop continues. Result: 1.
Example 2
Input:
3
Output:
1
1 2
1 2 3
Explanation:
Line i contains exactly 1 through i; the outer loop continues. Result: 1 1 2 1 2 3.