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 1099. Work Scheduling

Do I Read Input Correctly or not? Please...
Posted by Alexey 7 Jun 2006 16:49
My Program passes test, wich has about 300 pairs,
but TLE#1. Check My Input, please.

Procedure Input;
Begin
  Readln(n);
  While not Eof do
  Begin
    inc(la);
    Readln(a[la].p1,a[la].p2);
  End;
End;

Thanks a lot.
Your input is ok, but first test is not a sample (-)
Posted by Vladimir Yakovlev (USU) 7 Jun 2006 19:05
Re: Your input is ok, but first test is not a sample (-)
Posted by Alexey 7 Jun 2006 19:15
So, what trick hides test#1?
And why do I have WA#1 If I change Readln to Read?
Read FAQ about input till eof (-)
Posted by Vladimir Yakovlev (USU) 8 Jun 2006 01:55
Re: Read FAQ about input till eof (-)
Posted by Alexey 8 Jun 2006 13:28
I read it and did like that:

Procedure InputDat;
Begin
  Readln(n);
  While not SeekEof do
  Begin
    inc(la);
    Read(a[la].p1,a[la].p2);
  End;
End;

And again TLE#1 with 'Read' or 'Readln'...