#CCBCHBA0000086. Tam giác số theo hàng (Row-Number Triangle)
Tam giác số theo hàng (Row-Number Triangle)
Row-Number Triangle
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given an integer , print rows. Row (1-indexed) contains exactly copies of , separated by one space, without trailing spaces.
Input
One line contains the integer .
Output
Print exactly rows in the specified format.
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
3
Output:
1
2 2
3 3 3
Explanation:
Row i contains i copies of i. For this sample, the input is 3; the displayed rows follow these rules exactly.
Example 2
Input:
1
Output:
1
Explanation:
Row i contains i copies of i. For this sample, the input is 1; the displayed rows follow these rules exactly.