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

please send solution
Posted by Levan Kasradze (GEO) 17 Oct 2004 13:43
Re: please send solution
Posted by marina_ufa 17 Oct 2004 15:27
I have post you solution for this problem. What is your adress?
Re: please send solution
Posted by TbiliSU_4 17 Oct 2004 15:33
levani_kasra@posta.ge

I have solved 1319,
please send solution of any from 1320 to 1326
Re: please send solution
Posted by B.Talgat(Taldykorgan KTL) 2 Feb 2006 07:18
var
  a:  array[1..100,1..100]of longint;
  n,i,j,k,yk :longint;
begin
     readln(n);
  yk:=1;
     for i:=1 to n do
        begin
           k:=1;
           j:=n-i+1;
           while j<>n+1 do
           begin
              a[k,j]:=yk;
              inc(yk);
              inc(k);
              inc(j);
           end;
        end;
        for i:=2 to n do
           begin
                k:=1;
                j:=i;
                while j<>n+1 do
                begin
                  a[j,k]:=yk;
                  inc(yk);
                  inc(k);
                  inc(j);
                end;

           end;
        for i:=1  to n do
        begin
           for j:= 1 to n do
             write(a[i,j],' ');
             writeln;
        end;
 end.