#CCBCHBA0000120. Tam giác số theo vị trí (Position-Based Number Triangle)
Tam giác số theo vị trí (Position-Based Number Triangle)
Position-Based Number Triangle
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given , print exactly rows. Row contains integers in increasing order, separated by one space without leading or trailing spaces.
Input
One line contains integer .
Output
Print the triangle in exactly lines.
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
3
Output:
1
1 2
1 2 3
Explanation:
Row i contains 1 through i.
Example 2
Input:
1
Output:
1
Explanation:
Row i contains 1 through i.