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 1313. Some Words about Sport

Need help
Posted by Sergey 3 Apr 2005 01:58
Why wrong anwser on 5 test? Where is the error?

var N,i,k:integer;
    A:array[1..100,1..100]of integer;
begin
     fillchar(a,sizeof(a),0);
     Readln(n);
     for i:=1 to N do
     begin
      for k:=1 to N do
      begin
       read(A[i][k]);
      end;
     end;
k:=1;
    for i:=1 to N*N do
      begin
        if k>100 then k:=1;
         write(k,' ');
inc(k)
      end;
end.
On mine you have not understood a condition of a problem :)
Posted by Виктор Крупко 3 Apr 2005 02:59
4
12  3  6  10
2   5  9  13
4   22 12 15
7   11 14 163

The answer
12 2 3 4 5 6 7 22 9 10 11 12 13 14 15 163

Edited by author 03.04.2005 03:00