Task: | Grid |
Sender: | Sanja |
Submission time: | 2017-01-22 12:34:48 +0200 |
Language: | Pascal |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
#2 | WRONG ANSWER | 0 |
#3 | WRONG ANSWER | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | ACCEPTED | 0.04 s | 1 | details |
#2 | ACCEPTED | 0.04 s | 1 | details |
#3 | ACCEPTED | 0.04 s | 1 | details |
#4 | ACCEPTED | 0.05 s | 1 | details |
#5 | WRONG ANSWER | 0.05 s | 1 | details |
#6 | WRONG ANSWER | 0.03 s | 1 | details |
#7 | WRONG ANSWER | 0.04 s | 1 | details |
#8 | WRONG ANSWER | 0.04 s | 1 | details |
#9 | WRONG ANSWER | 0.04 s | 1 | details |
#10 | ACCEPTED | 0.03 s | 2 | details |
#11 | ACCEPTED | 0.03 s | 2 | details |
#12 | WRONG ANSWER | 0.04 s | 2 | details |
#13 | WRONG ANSWER | 0.04 s | 2 | details |
#14 | WRONG ANSWER | 0.05 s | 2 | details |
#15 | WRONG ANSWER | 0.04 s | 2 | details |
#16 | ACCEPTED | 0.04 s | 3 | details |
#17 | ACCEPTED | 0.04 s | 3 | details |
#18 | WRONG ANSWER | 0.04 s | 3 | details |
#19 | WRONG ANSWER | 0.07 s | 3 | details |
#20 | WRONG ANSWER | 0.15 s | 3 | details |
#21 | WRONG ANSWER | 0.14 s | 3 | details |
Compiler report
/usr/bin/ld.bfd: warning: output/link.res contains output sections; did you forget -T?
Code
(* * * 1 1 1 2 * 1 2 2 3 * 2 3 4 4 * 3 4 4 3 * *) var A : array [ 1 .. 1000 , 1 .. 1000 ] of LongInt; N : LongInt; var I , j : LongInt; begin readLn ( N ) ; if ( N < 4 ) then writeLn ( 'QAQ' ) else begin A[1][1] := 1; A[1][2] := 1; A[1][3] := 1; A[1][4] := 2; A[2][1] := 1; A[2][2] := 2; A[2][3] := 2; A[2][4] := 3; A[3][1] := 2; A[3][2] := 3; A[3][3] := 4; A[3][4] := 4; A[4][1] := 3; A[4][2] := 4; A[4][3] := 4; A[4][4] := 3; for i := 5 to N do begin if ( i mod 2 = 1 ) then begin for j := 1 to N do begin A[i][j] := j; A[j][i] := I; end; end else begin for j := 1 to N do begin A[i][j] := I; A[j][i] := J; end; end; end; for i := 1 to N do begin for j := 1 to N do write ( A[i][j] , ' ' ) ; writeLn(); end; end; end.
Test details
Test 1
Group: 1
Verdict: ACCEPTED
input |
---|
2 |
correct output |
---|
QAQ |
user output |
---|
QAQ |
Test 2
Group: 1
Verdict: ACCEPTED
input |
---|
3 |
correct output |
---|
QAQ |
user output |
---|
QAQ |
Test 3
Group: 1
Verdict: ACCEPTED
input |
---|
4 |
correct output |
---|
3 4 3 4 3 1 1 2 4 4 3 2 2 2 1 1 |
user output |
---|
1 1 1 2 1 2 2 3 2 3 4 4 3 4 4 3 |
Test 4
Group: 1
Verdict: ACCEPTED
input |
---|
5 |
correct output |
---|
2 3 4 1 1 3 4 2 1 2 4 2 3 1 3 4 3 2 1 4 5 5 5 5 5 |
user output |
---|
1 1 1 2 5 1 2 2 3 5 2 3 4 4 5 3 4 4 3 5 1 2 3 4 5 |
Test 5
Group: 1
Verdict: WRONG ANSWER
input |
---|
6 |
correct output |
---|
2 3 4 5 1 1 3 4 5 2 1 2 4 5 2 3 1 3 5 2 3 4 1 4 5 4 3 2 1 5 ... |
user output |
---|
1 1 1 2 5 1 1 2 2 3 5 2 2 3 4 4 5 3 3 4 4 3 5 4 1 2 3 4 5 5 ... |
Test 6
Group: 1
Verdict: WRONG ANSWER
input |
---|
7 |
correct output |
---|
2 3 4 5 6 1 1 3 4 5 6 2 1 2 4 5 6 2 3 1 3 5 6 2 3 4 1 4 6 2 3 4 5 1 5 ... |
user output |
---|
1 1 1 2 5 1 7 1 2 2 3 5 2 7 2 3 4 4 5 3 7 3 4 4 3 5 4 7 1 2 3 4 5 5 7 ... |
Test 7
Group: 1
Verdict: WRONG ANSWER
input |
---|
8 |
correct output |
---|
2 3 4 5 6 7 1 1 3 4 5 6 7 2 1 2 4 5 6 7 2 3 1 3 5 6 7 2 3 4 1 4 6 7 2 3 4 5 1 5 ... |
user output |
---|
1 1 1 2 5 1 7 1 1 2 2 3 5 2 7 2 2 3 4 4 5 3 7 3 3 4 4 3 5 4 7 4 1 2 3 4 5 5 7 5 ... |
Test 8
Group: 1
Verdict: WRONG ANSWER
input |
---|
9 |
correct output |
---|
2 3 4 5 6 7 8 1 1 3 4 5 6 7 8 2 1 2 4 5 6 7 8 2 3 1 3 5 6 7 8 2 3 4 1 4 6 7 8 2 3 4 5 1 5 ... |
user output |
---|
1 1 1 2 5 1 7 1 9 1 2 2 3 5 2 7 2 9 2 3 4 4 5 3 7 3 9 3 4 4 3 5 4 7 4 9 1 2 3 4 5 5 7 5 9 ... |
Test 9
Group: 1
Verdict: WRONG ANSWER
input |
---|
10 |
correct output |
---|
2 3 4 5 6 7 8 9 1 1 3 4 5 6 7 8 9 2 1 2 4 5 6 7 8 9 2 3 1 3 5 6 7 8 9 2 3 4 1 4 6 7 8 9 2 3 4 5 1 5 ... |
user output |
---|
1 1 1 2 5 1 7 1 9 1 1 2 2 3 5 2 7 2 9 2 2 3 4 4 5 3 7 3 9 3 3 4 4 3 5 4 7 4 9 4 1 2 3 4 5 5 7 5 9 5 ... |
Test 10
Group: 2
Verdict: ACCEPTED
input |
---|
3 |
correct output |
---|
QAQ |
user output |
---|
QAQ |
Test 11
Group: 2
Verdict: ACCEPTED
input |
---|
4 |
correct output |
---|
3 4 3 4 3 1 1 2 4 4 3 2 2 2 1 1 |
user output |
---|
1 1 1 2 1 2 2 3 2 3 4 4 3 4 4 3 |
Test 12
Group: 2
Verdict: WRONG ANSWER
input |
---|
29 |
correct output |
---|
2 3 4 5 6 7 8 9 10 11 12 13 14... |
user output |
---|
1 1 1 2 5 1 7 1 9 1 11 1 13 1 ... |
Test 13
Group: 2
Verdict: WRONG ANSWER
input |
---|
48 |
correct output |
---|
2 3 4 5 6 7 8 9 10 11 12 13 14... |
user output |
---|
1 1 1 2 5 1 7 1 9 1 11 1 13 1 ... |
Test 14
Group: 2
Verdict: WRONG ANSWER
input |
---|
80 |
correct output |
---|
2 3 4 5 6 7 8 9 10 11 12 13 14... |
user output |
---|
1 1 1 2 5 1 7 1 9 1 11 1 13 1 ... |
Test 15
Group: 2
Verdict: WRONG ANSWER
input |
---|
97 |
correct output |
---|
2 3 4 5 6 7 8 9 10 11 12 13 14... |
user output |
---|
1 1 1 2 5 1 7 1 9 1 11 1 13 1 ... |
Test 16
Group: 3
Verdict: ACCEPTED
input |
---|
3 |
correct output |
---|
QAQ |
user output |
---|
QAQ |
Test 17
Group: 3
Verdict: ACCEPTED
input |
---|
4 |
correct output |
---|
3 4 3 4 3 1 1 2 4 4 3 2 2 2 1 1 |
user output |
---|
1 1 1 2 1 2 2 3 2 3 4 4 3 4 4 3 |
Test 18
Group: 3
Verdict: WRONG ANSWER
input |
---|
111 |
correct output |
---|
2 3 4 5 6 7 8 9 10 11 12 13 14... |
user output |
---|
1 1 1 2 5 1 7 1 9 1 11 1 13 1 ... |
Test 19
Group: 3
Verdict: WRONG ANSWER
input |
---|
506 |
correct output |
---|
2 3 4 5 6 7 8 9 10 11 12 13 14... |
user output |
---|
1 1 1 2 5 1 7 1 9 1 11 1 13 1 ... |
Test 20
Group: 3
Verdict: WRONG ANSWER
input |
---|
844 |
correct output |
---|
2 3 4 5 6 7 8 9 10 11 12 13 14... |
user output |
---|
1 1 1 2 5 1 7 1 9 1 11 1 13 1 ... |
Test 21
Group: 3
Verdict: WRONG ANSWER
input |
---|
991 |
correct output |
---|
2 3 4 5 6 7 8 9 10 11 12 13 14... |
user output |
---|
1 1 1 2 5 1 7 1 9 1 11 1 13 1 ... |