#CCBCHBA0000123. Tam giác số ngược (Reverse Number Triangle)
Tam giác số ngược (Reverse Number Triangle)
Reverse Number Triangle
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given , print rows. The first contains ; each subsequent row has one fewer number, and the last contains only . Separate consecutive numbers by exactly one space, without trailing spaces.
Input
One line contains integer .
Output
Print exactly rows.
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
4
Output:
1 2 3 4
1 2 3
1 2
1
Explanation:
The row width decreases by one after each row.
Example 2
Input:
1
Output:
1
Explanation:
The row width decreases by one after each row.