QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#154930#2359. The Five Bishopstemp6WA 9ms3472kbC++203.7kb2023-09-01 03:34:372023-09-01 03:34:38

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 3472kb

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: 0ms
memory: 3424kb

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: 9ms
memory: 3396kb

input:

1000
2 -2 0 2 2 -1 2 1 -2 -1 2 2

output:

0 0 0 0

result:

wrong answer gave up when answer is possible, mc = 1