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 1452. Pascal vs. C++

How to read input data in Pascal?
Posted by Iosif inf-10 6 Feb 2013 14:08
My prog got TLE on test 8
I found that  on test 8 about 0.2 sec  my program spend on reading input data.

Here the part of code ( this part takes about 0.2 sec on test 8 - I checked it many times)
...
  Readln(N);
  for i:=1 to N do
   begin
    A[i].p:=i;
    Read(C);
    A[i].V:=C;
 end;
...



Could you please explain how it should be done?

Edited by author 06.02.2013 14:09

Edited by author 07.02.2013 01:22

Edited by author 07.02.2013 01:22