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 1037. Memory Management

How can I know that's the end of input?
Posted by Knot Skycreeper[th] 9 Oct 2002 22:48
How can I know that's the end of input?
Thank you in advance.
Re: How can I know that's the end of input?
Posted by Paragina Silviu 3 Apr 2003 02:38
> How can I know that's the end of input?
> Thank you in advance.


Simple
you add {$I-} at the beginning of the code
and you use eof(input)

something like

while not eof(f) do
read(time);
if not eof(f) then.........