#P367. 练63.1 蛇行三角形
练63.1 蛇行三角形
Description
A snake-like triangle with rows is formed by arranging natural numbers starting from in an upper triangular matrix.
The first row has numbers, and each subsequent row has one fewer number. See the sample for the specific pattern.
Input Format
Input an integer , where .
Output Format
Output the snake-like triangle with rows.
Sample
51 3 6 10 15
2 5 9 14
4 8 13
7 12
11