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 1319. Hotel

+++++Wrong answer test(4) Why?Help me+++++
Posted by Виктор Крупко 9 Apr 2005 02:28

program de;
    var
    a:array[1..100,1..100] of byte;
    t,i,j,z,n:integer;
begin
   readln(n);
   z:=2;
   t:=0;
   if n=1 then write(1)
   else
   begin
   repeat
   for i:=1 to z-1 do
   if (z-i<=n) and (i<=n) then
   begin
   inc(t);
   a[i,z-i]:=t;
   end;
   inc(z);
   until z=n*n+1;
   for i:=1 to n do
   begin
   for j:=n downto 1 do
   write(a[i,j],' ');
   writeln;
   end;
   end;
end.
Re: +++++Wrong answer test(4) Why?Help me+++++
Posted by Burunduk1 9 Apr 2005 03:18
Check your program for the test 100
(answer is very strange :)
wo blin ya mudak, thank you+++++++
Posted by Виктор Крупко 9 Apr 2005 03:30