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 1089. Verification with the Dictionary

Use 'eof' to stop your program
Posted by Roby 31 Jul 2006 09:46
if there is a empty line , don't stop your program.
Re: Use 'eof' to stop your program
Posted by strider 29 Jan 2009 13:17
That's real advise!
For the input:
___________
try
#
try try try.

~~~~~~~~~~~

Correct is the output
___________
try try try.

0
~~~~~~~~~~~
as well, so don't bother yourself to avoid the last empty line. Contrary, i've lost a lot of time with it. Stop at EOF, not at double empty line!