АВТ
Language:

Remote Training on Programming

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

759. Удаление пробелов

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

 
Во входном файле записана одна строка текста (не больше 255 символов).
В выходной файл нужно вывести эту же строку, удалив все парные пробелы
(то есть если где-то в строке идет подряд 2 или больше пробелов,
то в этом месте нужно оставить только один из них).

Пример входного файла
   My    name is    Vasya...

Пример выходного файла
 My name is Vasya...

View Problem Statistics Submit Author/source: olympiads.ru
Educational Courses / Problems from olympiads.ru for beginners /
758. 207 - Перестановка слов 759. 760. 209 - Увеличение чисел - 1 761. 210 - Увеличение чисел - 2 762. 211 - Копирование файла
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.062 sec.
© Copyright VSTU, AVT, Nosov D.A.