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 1027. D++ Again

WHY TIme limit on 1 test?????????????????????????????????
Posted by Valera Darmakheev[Esstu] 1 Mar 2007 12:35
WHY TIme limit  on 1 test??????????????????????????
program z1027;

{$APPTYPE CONSOLE}

uses
  SysUtils;
var s,s1:string;
    flag,flag1,i:integer;
begin
  { TODO -oUser -cConsole Main : Insert code here }
  {$IFNDEF ONLINE_JUDGE}
    assign(input, 'input.txt');
    reset(input);
    assign(output, 'output.txt');
    rewrite(output);
  {$ENDIF}
  while not seekeof do
  Begin
    read(s1);
    s:=s+s1;
  End;
  .....
  .....
  {$IFNDEF ONLINE_JUDGE}
    close(input);
    close(output);
  {$ENDIF}
end.

Edited by author 01.03.2007 12:38
Re: WHY TIme limit on 1 test?????????????????????????????????
Posted by Access Violation 1 Jan 2008 22:00
What does your code fragment mean? "Time Limit" error means that your algo use too much time. Try to find a better algo.

P.S. Sorry for my English.