ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1941. Scary Martian Word

What is format of input?
Posted by Felix_Mate 8 Jul 2016 21:26
По условию может быть так(.-пробел):.........aaa.bbb.ссс.
                                    .....xxx.aaa.bbb.ccc.
                                    или
                                    .........aaa.bbb.ссс........
                                    .....xxx.aaa.bbb.ccc........???????
И вообще,как в ЭТОЙ задаче считывать данные(на Паскале)?

Edited by author 08.07.2016 21:27
Re: What is format of input?
Posted by Jane Soboleva (SumNU) 8 Jul 2016 22:43
Не может.
В начале пробелов нет, между каждой группой ровно один пробел.
Я делаю так:
readln(s); i:=1;
while i <= length(s) do begin
    //process [i], [i + 1], [i + 2]
    inc(i, 4);
end;