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

1352. Deletion of Repeats

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

Дано N (1 ≤ N ≤ 1000) и N целых чисел. Удалить числа, встречающиеся более трёх раз. Вывести количество оставшихся чисел и сами оставшиеся числа с сохранением исходного порядка.

Пример

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


View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / Contest VML 22.03.2015 /
1351. D - Prime Numbers 1352. 1353. F - 16 -> 20 1354. G - Serpent 1355. H - Root
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / Contest for 7B from VML /
1719. 5 - Friend Numbers 1352. 726. 7 - Сортировка
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / Contest VML, 7 form, arrays /
1825. 5 - Quantity of different numbers 1352. 1828. 7 - Number of different digits 1827. 8 - Maximal distance 1826. 9 - Triangle with maximal perimeter
Problems from Contests and Camps / Trainings of Vologda SU / Training 25.03.2018 /
1350. 5 - Fibonacci Numbers 1352.
Educational Courses / C++ Programming Language / Cycles, arrays /
1824. 07 - Exchange 1352. 745. 09 - Цветной дождь 1480. 10 - Sums of Submatrices
Problems from Contests and Camps / School olympiads and couses of Vologda region / Impulse, september 2020 / Opening Olympiad, Impulse, 2020 /
1351. 04 - Prime Numbers 1352. 1353. 06 - 16 -> 20 1354. 07 - Serpent 1355. 08 - Root
Educational Courses / Programming and Basics of Algorithmization / Lists and strings for beginners /
1830. 01 - Even and odd numbers 1352. 1827. 03 - Maximal distance 1895. 04 - Changes of letters and digits 1901. 05 - Check of brackets
Problems from Contests and Camps / School olympiads and couses of Vologda region / Impulse, August-September 2022 / Impulse, August-September 2022, Closing Olympiad for Beginners /
1351. 04 - Prime Numbers 1352. 1353. 06 - 16 -> 20 1354. 07 - Serpent
time generating 0.328 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.