QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#484410#2495. Knight's Moveucup-team1005WA 2ms3728kbC++203.2kb2024-07-19 18:23:572024-07-19 18:23:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3728kb

input:

4

output:

4 1 0
4 1 1
3 3 1
3 3 0
1 4 0
1 4 1
2 2 1
4 3 1
4 3 0
2 4 0
2 4 1
1 2 1
1 2 0
3 1 0
3 1 1
2 3 1
2 3 0
4 2 0
4 2 1
2 1 1
2 1 0
1 3 0
3 2 0
3 2 1
1 3 1
3 4 1
3 4 0
2 2 0

result:

ok good job

Test #2:

score: 0
Accepted
time: 2ms
memory: 3652kb

input:

6

output:

6 1 0
6 1 1
5 3 1
5 3 0
6 5 0
6 5 1
4 6 1
4 6 0
2 5 0
2 5 1
4 4 1
4 4 0
6 3 0
6 3 1
5 5 1
5 5 0
3 6 0
3 6 1
1 5 1
1 5 0
3 4 0
3 4 1
2 6 1
2 6 0
4 5 0
4 5 1
6 4 1
6 4 0
5 6 0
5 6 1
3 5 1
3 5 0
5 4 0
5 4 1
3 3 1
3 3 0
5 2 0
5 2 1
3 1 1
3 1 0
1 2 0
1 2 1
2 4 1
1 6 1
1 6 0
2 4 0
4 3 0
6 2 0
6 2 1
4 1 1
...

result:

ok good job

Test #3:

score: -100
Wrong Answer
time: 1ms
memory: 3628kb

input:

8

output:

6 3 0
8 4 0
7 5 0
7 7 0
6 6 0
4 8 0
2 8 0
1 5 0
1 3 0
3 1 0
4 2 0
6 2 0
8 2 0
8 2 1
6 2 1
4 2 1
3 1 1
1 3 1
1 5 1
2 8 1
4 8 1
6 6 1
7 7 1
7 5 1
8 4 1
6 3 1
5 5 1
5 5 0
3 6 0
3 6 1
4 4 1
6 5 1
6 5 0
4 6 0
4 6 1
3 4 1
3 4 0
5 3 0
7 4 0
8 5 0
8 7 0
5 8 0
3 8 0
1 8 0
2 5 0
2 3 0
3 2 0
2 1 0
5 2 0
7 2 0
...

result:

FAIL invalid move: from (8, 4, 0) to (7, 5, 0)