QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#620000#9108. Zayin and ObstaclesHuangHanShengWA 15ms52280kbC++202.0kb2024-10-07 16:16:032024-10-07 16:16:04

详细

Test #1:

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

input:

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

output:

6
-1
14

result:

ok 3 lines

Test #2:

score: -100
Wrong Answer
time: 15ms
memory: 52280kb

input:

5
19 27
2 1 1 2 18 19
4 2 1 4 19 19
6 1 1 6 18 19
8 2 1 8 19 19
10 1 1 10 18 19
12 2 1 12 19 19
14 1 1 14 18 19
16 2 1 16 19 19
18 1 1 18 18 19
1 1 2 18 19 2
2 1 4 19 19 4
1 1 6 18 19 6
2 1 8 19 19 8
1 1 10 18 19 10
2 1 12 19 19 12
1 1 14 18 19 14
2 1 16 19 19 16
1 1 18 18 19 18
1 2 2 19 19 2
1 2 4 ...

output:

1998
15998
53998
-1
-1

result:

wrong answer 4th lines differ - expected: '127998', found: '-1'