QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#154885#2359. The Five Bishopstemp6WA 0ms3800kbC++203.8kb2023-09-01 02:07:122023-09-01 02:07:13

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3584kb

input:

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

output:

0 0 0 0
1 2 0 3
1 5 999999996 1000000000
1 1 -39999999 -39999999
2 2 40000002 40000002
0 3 -40000000 -39999997
1 4 40000001 40000004
-39999999 -39999999 1 1
40000002 40000002 9 9
-40000000 -39999997 -1 2
40000001 40000004 8 11
-1 2 0 3
1 1 2 2
0 3 1 4
2 2 3 3
1 4 2 5
3 3 4 4
8 11 7 10
9 9 8 8
2 5 3 ...

result:

ok 4 cases

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3800kb

input:

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

output:

0 1 -2 3
0 6 1 5
0 0 1000000000 1000000000
-2 3 -40000002 -39999997
0 5 40000000 40000005
0 4 -40000000 -39999996
1 5 40000001 40000005
-40000002 -39999997 -5 0
40000000 40000005 3 8
-40000000 -39999996 -5 -1
40000001 40000005 4 8
-5 -1 -4 0
-5 0 -4 1
-4 0 -3 1
-4 1 -3 2
-3 1 -2 2
-3 2 -2 3
-2 2 -1 ...

result:

wrong answer Move 26: cannot move from (1, -2) to (1, -2): either blocked or invalid move