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 1196. History Exam

Error in tests
Posted by neoGolden 29 Nov 2006 16:50
i send this program:
var
  n,i:integer;
  bu:integer;
  a:array[1..15000]of integer;

begin
  readln(n);
  bu:=0;
  for i:=1 to n do begin
    readln(a[i]);
    while bu>=a[i] do bu:=bu;
    bu:=a[i];
  end;
  writeln('-1');
  readln;
end.

System must show TL if first list contains 0 or two equal numbers or not sorted.
Re: Error in tests
Posted by Sandro (USU) 3 Dec 2006 16:20
But teacher's list may contain equal numbers. It's not error, I think.