АВТ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

1241. Matrix

Time Limit: 1 seconds
Memory Limit:132000KB
Points:100
View Problem Statistics Submit Problem added debug

С клавиатуры задается натуральное число N не превышающее 20. Заполнить и вывести на экран матрицу вида

1

2

3

N-2

N-1

N

2

3

4

N-1

N

0

3

4

5

N

0

0

N-1

N

0

0

0

0

N

0

0

0

0

0

Input

Число N, 1<=N<=20

Output

Искомая матрица.

Sample

InputOutput
1
1 
4
1 2 3 4
2 3 4 0
3 4 0 0
4 0 0 0

View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / School olympiads and couses of Vologda region / All-Russian school olympiad, scool stage / Olympiad on informatics 2013 - school level / Problems 10 grade /
1240. 1 - Sum of prime divisors 1241. 1242. 3 - Shift 1243. 4 - Denominator 1244. 5 - Sum
time generating 0.344 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.