АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

56. Remove Numbers

Time Limit: 1 seconds
Memory Limit:64000KB
Points:2
View Problem Statistics Submit Problem added Administrator

Удалить из произвольного массива целых чисел заданное количество элементов, начиная с заданной позиции. Длина массива не более 100 элементов. Первый элемент массива имеет номер позиции 1.

Input

Первая строка содержит количество элементов массива n.

Затем следуют элементы массива (целые числа), каждый в отдельной строке.

В последней строке находятся целые числа m и k через пробел (m - номер позиции и k - количество удаляемых элементов).

Output

Первая строка содержит количество элементов в полученном массиве.

Затем следуют элементы полученного массива, каждый в отдельной строке.

Sample

InputOutput
20
412
202
358
83
224
57
465
381
409
429
76
440
413
289
11
179
171
344
122
316
1 25
0

View Problem Statistics Submit Author/source:
Educational Courses / Programming and Basics of Algorithmization / Others /
58. One Step to QuickSort 56. 57. Same Numbers
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.031 sec.
© Copyright VSTU, AVT, Nosov D.A.