Task: | Grid |
Sender: | iiiiikriiiii |
Submission time: | 2017-01-22 10:21:42 +0200 |
Language: | C++ |
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.03 s | 1 | details |
#2 | WRONG ANSWER | 0.04 s | 1 | details |
#3 | WRONG ANSWER | 0.04 s | 1 | details |
#4 | WRONG ANSWER | 0.04 s | 1 | details |
#5 | ACCEPTED | 0.03 s | 1 | details |
#6 | WRONG ANSWER | 0.03 s | 1 | details |
#7 | WRONG ANSWER | 0.05 s | 1 | details |
#8 | WRONG ANSWER | 0.04 s | 1 | details |
#9 | ACCEPTED | 0.06 s | 1 | details |
#10 | WRONG ANSWER | 0.03 s | 2 | details |
#11 | WRONG ANSWER | 0.05 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.03 s | 2 | details |
#16 | WRONG ANSWER | 0.04 s | 3 | details |
#17 | WRONG ANSWER | 0.03 s | 3 | details |
#18 | WRONG ANSWER | 0.05 s | 3 | details |
#19 | ACCEPTED | 0.07 s | 3 | details |
#20 | WRONG ANSWER | 0.11 s | 3 | details |
#21 | WRONG ANSWER | 0.13 s | 3 | details |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:10:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d",&N); ^
Code
#include <stdio.h> #include <algorithm> #include <vector> using namespace std; int main() { int N; scanf ("%d",&N); if (N == 2) puts("QAQ"); else{ for (int i=0;i<N;i++){ for (int j=0;j<N;j++){ if (i == j) printf ("%d ",N-i); else printf ("%d ",i+1); } puts(""); } } return 0; }
Test details
Test 1
Group: 1
Verdict: ACCEPTED
input |
---|
2 |
correct output |
---|
QAQ |
user output |
---|
QAQ |
Test 2
Group: 1
Verdict: WRONG ANSWER
input |
---|
3 |
correct output |
---|
QAQ |
user output |
---|
3 1 1 2 2 2 3 3 1 |
Test 3
Group: 1
Verdict: WRONG ANSWER
input |
---|
4 |
correct output |
---|
3 4 3 4 3 1 1 2 4 4 3 2 2 2 1 1 |
user output |
---|
4 1 1 1 2 3 2 2 3 3 2 3 4 4 4 1 |
Test 4
Group: 1
Verdict: WRONG ANSWER
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 |
---|
5 1 1 1 1 2 4 2 2 2 3 3 3 3 3 4 4 4 2 4 5 5 5 5 1 |
Test 5
Group: 1
Verdict: ACCEPTED
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 |
---|
6 1 1 1 1 1 2 5 2 2 2 2 3 3 4 3 3 3 4 4 4 3 4 4 5 5 5 5 2 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 |
---|
7 1 1 1 1 1 1 2 6 2 2 2 2 2 3 3 5 3 3 3 3 4 4 4 4 4 4 4 5 5 5 5 3 5 5 ... |
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 |
---|
8 1 1 1 1 1 1 1 2 7 2 2 2 2 2 2 3 3 6 3 3 3 3 3 4 4 4 5 4 4 4 4 5 5 5 5 4 5 5 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 |
---|
9 1 1 1 1 1 1 1 1 2 8 2 2 2 2 2 2 2 3 3 7 3 3 3 3 3 3 4 4 4 6 4 4 4 4 4 5 5 5 5 5 5 5 5 5 ... |
Test 9
Group: 1
Verdict: ACCEPTED
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 |
---|
10 1 1 1 1 1 1 1 1 1 2 9 2 2 2 2 2 2 2 2 3 3 8 3 3 3 3 3 3 3 4 4 4 7 4 4 4 4 4 4 5 5 5 5 6 5 5 5 5 5 ... |
Test 10
Group: 2
Verdict: WRONG ANSWER
input |
---|
3 |
correct output |
---|
QAQ |
user output |
---|
3 1 1 2 2 2 3 3 1 |
Test 11
Group: 2
Verdict: WRONG ANSWER
input |
---|
4 |
correct output |
---|
3 4 3 4 3 1 1 2 4 4 3 2 2 2 1 1 |
user output |
---|
4 1 1 1 2 3 2 2 3 3 2 3 4 4 4 1 |
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 |
---|
29 1 1 1 1 1 1 1 1 1 1 1 1 1 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 |
---|
48 1 1 1 1 1 1 1 1 1 1 1 1 1 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 |
---|
80 1 1 1 1 1 1 1 1 1 1 1 1 1 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 |
---|
97 1 1 1 1 1 1 1 1 1 1 1 1 1 1... |
Test 16
Group: 3
Verdict: WRONG ANSWER
input |
---|
3 |
correct output |
---|
QAQ |
user output |
---|
3 1 1 2 2 2 3 3 1 |
Test 17
Group: 3
Verdict: WRONG ANSWER
input |
---|
4 |
correct output |
---|
3 4 3 4 3 1 1 2 4 4 3 2 2 2 1 1 |
user output |
---|
4 1 1 1 2 3 2 2 3 3 2 3 4 4 4 1 |
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 |
---|
111 1 1 1 1 1 1 1 1 1 1 1 1 1 ... |
Test 19
Group: 3
Verdict: ACCEPTED
input |
---|
506 |
correct output |
---|
2 3 4 5 6 7 8 9 10 11 12 13 14... |
user output |
---|
506 1 1 1 1 1 1 1 1 1 1 1 1 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 |
---|
844 1 1 1 1 1 1 1 1 1 1 1 1 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 |
---|
991 1 1 1 1 1 1 1 1 1 1 1 1 1 ... |