#CCBCHBA0000105. Tam giác số đối xứng (Symmetric Number Triangle)
Tam giác số đối xứng (Symmetric Number Triangle)
Symmetric Number Triangle
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given , print rows. Row contains followed by . Print the central once and separate consecutive numbers by one space without trailing spaces.
Input
One line contains integer .
Output
Print exactly rows in order.
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
3
Output:
1
1 2 1
1 2 3 2 1
Explanation:
Print 3 rows; row i increases to i, then decreases to 1 without repeating i.
Example 2
Input:
1
Output:
1
Explanation:
Print 1 rows; row i increases to i, then decreases to 1 without repeating i.