#CCBCHBA0000087. Tam giác số tăng cột (Increasing-Column Triangle)
Tam giác số tăng cột (Increasing-Column Triangle)
Increasing-Column Triangle
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given , output rows. Row contains the integers in increasing order, separated by one space and without trailing spaces.
Input
One line contains the integer .
Output
Print rows in increasing row order.
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
4
Output:
1
1 2
1 2 3
1 2 3 4
Explanation:
Row i prints columns numbered 1 through i. For this sample, the input is 4; the displayed rows follow these rules exactly.
Example 2
Input:
1
Output:
1
Explanation:
Row i prints columns numbered 1 through i. For this sample, the input is 1; the displayed rows follow these rules exactly.