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

1831. First - last

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

Дано N целых чисел A1, A2, ..., AN (1 ≤ N ≤ 1000). Вначале вводится количество чисел N, затем - сами числа. Вывести их в следующем порядке: A1, AN, A2, AN1, A3, ..

Пример

Входные данные
5
1
7
2
4
3
Выходные данные
1
3
7
4
2


View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / Contest VML, 7 form, arrays /
1830. 2 - Even and odd numbers 1831. 1824. 4 - Exchange 1825. 5 - Quantity of different numbers 1352. 6 - Deletion of Repeats
Problems from Contests and Camps / School olympiads and couses of Vologda region / Impulse - June 2021 / Impulse - June 2021, Opening Olympiad /
1819. 04 - Maximum of triples 1831. 1827. 06 - Maximal distance 1834. 07 - Power of 6 1842. 08 - Triangle of maximal area
Educational Courses / Programming and Basics of Algorithmization / Lists and strings for intermediates /
1831. 1824. 02 - Exchange 1826. 03 - Triangle with maximal perimeter 1353. 04 - 16 -> 20
time generating 0.406 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.