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 1038. Spell Checker

Is input conteined only one line?
Posted by Valentin Mihov 15 Apr 2001 19:49
Re: Is input conteined only one line?
Posted by Krzysztof Kapuscik 15 Apr 2001 20:27
No the input can be split between several lines. My method
is to read it using getchar and to use two flags
sequence_start and word_start.
Good luck.
He's right
Posted by Marat Bakirov 17 Apr 2001 17:30
I mean input can really be split into several lines
Posted by Marat Bakirov 17 Apr 2001 18:49
>
Re:Re: Is input conteined only one line?
Posted by Valentin Mihov 18 Apr 2001 10:55
> No the input can be split between several lines. My
method
> is to read it using getchar and to use two flags
> sequence_start and word_start.
> Good luck.
>
I can't understand what exactly you mean, but can you tell
me what I should do if I use Pascal? Can I use EOF?
I am not sure too, but I think check for eof will work. Anyhow, just try it at home! You can make your sample input, You can also simulate judge by running your_program.exe < your_input.txt
Posted by Marat Bakirov 18 Apr 2001 18:22
Yes, but if I use eof I must press Clt+Z at the end of the input, if I don't the program will continue to read the input
Posted by Valentin Mihov 19 Apr 2001 11:19
>