QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#154883#2359. The Five Bishopstemp6WA 4ms3488kbC++203.8kb2023-09-01 01:59:362023-09-01 01:59:37

详细

Test #1:

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

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: 4ms
memory: 3440kb

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