QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#154935#2359. The Five Bishopstemp6WA 37ms3392kbC++203.7kb2023-09-01 03:36:522023-09-01 03:36:52

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 3344kb

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 3 6
3 6 3 5
3 5 2 4
2 4 3 3
3 3 2 4
2 4 1 4
1 4 0 3
0 3 -1 2
-1 2 0 2
0 2 1 2
1 2 2 1
2 1 2 2
2 2 3 3
3 3 2 4
2 4 3 3
3 3 2 4
2 4 3 4
3 4 4 5
4 5 4 6
4 6 5 6
5 6 4 6
4 6 5 5
5 5 6 4
6 4 5 5
0 0 0 0
...

output:

0 0 0 0
1 2 0 3
1 5 999999996 1000000000
0 3 -10000000 -9999997
1 4 10000001 10000004
-10000000 -9999997 -20000000 3
10000001 10000004 1 20000004
1 1 -9999999 -9999999
2 2 10000002 10000002
-9999999 -9999999 -19999999 1
10000002 10000002 2 20000002
-19999999 1 -10000001 9999999
2 20000002 -9999993 1...

result:

ok 4 cases

Test #2:

score: 0
Accepted
time: 6ms
memory: 3392kb

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 0 3
0 3 1 4
1 4 0 3
0 3 -1 4
-1 4 -2 4
-2 4 -3 5
-3 5 -4 6
-4 6 -5 7
-5 7 -6 8
-6 8 -7 9
-7 9 -8 10
-8 10 -9 11
-9 11 -10 12
-10 12 -11 13
-11 13 -12 14
-12 14 -13 15
-13 15 -14 16
-14 16 -15 17
-15 17 -16 18
-16 18 -17 19...

output:

0 1 -2 3
0 6 1 5
0 0 1000000000 1000000000
-2 3 -10000002 -9999997
0 5 10000000 10000005
-10000002 -9999997 -20000002 3
10000000 10000005 0 20000005
0 4 -10000000 -9999996
1 5 10000001 10000005
-10000000 -9999996 -20000000 4
10000001 10000005 1 20000005
-20000000 4 -10000005 9999999
1 20000005 -9999...

result:

ok 6 cases

Test #3:

score: -100
Wrong Answer
time: 37ms
memory: 3392kb

input:

1000
2 -2 0 2 2 -1 2 1 -2 -1 2 2
2 2 3 1
3 1 4 2
4 2 3 2
3 2 4 3
4 3 3 2
3 2 4 3
4 3 4 2
4 2 5 1
5 1 5 0
5 0 6 -1
6 -1 7 -1
7 -1 8 0
8 0 7 1
7 1 7 2
7 2 6 2
6 2 5 2
5 2 5 3
5 3 6 3
6 3 6 4
6 4 7 4
7 4 7 5
7 5 8 4
8 4 9 3
9 3 8 3
8 3 8 2
8 2 9 2
9 2 10 2
10 2 11 1
11 1 12 0
12 0 13 -1
13 -1 12 0
0 0 ...

output:

0 2 3 -1
2 1 3 0
-2 -1 999999999 1000000000
2 -2 -9999998 -10000002
3 -1 10000003 9999999
-9999998 -10000002 -19999998 -2
10000003 9999999 3 19999999
2 -1 -9999998 -10000001
3 0 10000003 10000000
-9999998 -10000001 -19999998 -1
10000003 10000000 3 20000000
-19999998 -2 -9999999 9999997
3 19999999 -9...

result:

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