QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#98844#5229. Hazelnut HarvestingZ_301AC ✓7116ms587276kbC++174.5kb2023-04-20 14:27:092023-04-20 14:27:12

詳細信息

Test #1:

score: 100
Accepted
time: 7116ms
memory: 587276kb

input:

160
4
0 0
2 1
5 0
0 6
5
10 10
12 10
8 10
5 10
8 8
4
1 1
3 3
0 4
4 6
20
9 6
18 4
17 13
9 18
9 7
16 8
0 3
7 12
4 16
5 10
5 11
3 8
16 4
12 8
5 2
15 16
5 7
10 3
19 15
11 2
20
2 4
14 14
16 6
5 9
2 9
5 16
13 15
8 15
5 14
4 1
13 8
8 4
10 13
2 17
9 6
2 8
16 3
5 2
9 8
6 5
19
12 13
6 6
6 4
14 3
6 0
12 15
4 14...

output:

Case #1: 20
Case #2: 28
Case #3: 42
Case #4: 135
Case #5: 139
Case #6: 136
Case #7: 82
Case #8: 93
Case #9: 170
Case #10: 194
Case #11: 163
Case #12: 109
Case #13: 85
Case #14: 1000002
Case #15: 250001000001
Case #16: 1000002
Case #17: 2560000000000
Case #18: 1920000000000
Case #19: 8778
Case #20: 2...

result:

ok 160 lines