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

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.
Vladimir Yakovlev (USU) Your input is ok, but first test is not a sample (-) [3] // Problem 1099. Work Scheduling 7 Jun 2006 19:05
So, what trick hides test#1?
And why do I have WA#1 If I change Readln to Read?
Vladimir Yakovlev (USU) Read FAQ about input till eof (-) [1] // Problem 1099. Work Scheduling 8 Jun 2006 01:55
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'...