АВТ
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.

1238. Hourglass

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

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

1 1 1 1 1 1 1 1 1
0 1 1 1 1 1 1 1 0
0 0 1 1 1 1 1 0 0
0 0 0 1 1 1 0 0 0
0 0 0 0 1 0 0 0 0
0 0 0 1 1 1 0 0 0
0 0 1 1 1 1 1 0 0
0 1 1 1 1 1 1 1 0
1 1 1 1 1 1 1 1 1

Input

Натуральное число N <= 25

Output

Заполненный массив

Sample

InputOutput
5
1 1 1 1 1
0 1 1 1 0
0 0 1 0 0
0 1 1 1 0
1 1 1 1 1 

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 9 grade /
1237. 3 - Proper fractions 1238. 1239. 5 - Word
time generating 0.11 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.