QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#774918#3407. Gift Huntingucup-team4949#AC ✓184ms4040kbC++141.0kb2024-11-23 14:11:582024-11-23 14:12:00

詳細信息

Test #1:

score: 100
Accepted
time: 184ms
memory: 4040kb

input:

301 28 27
42 801 1
313 1 0
2 911 0
320 1 0
2 776 1
15 530 0
1 157 1
8 464 1
5 562 1
1 180 1
317 1 0
312 1 0
315 1 0
6 645 0
300 2 0
2 175 1
319 1 0
316 1 0
2 147 1
99 342 1
314 1 0
72 335 1
318 1 0
311 1 0
6 624 1
7 92 1
59 951 1
477 28 18
478 1 1
2 363 1
495 123 0
489 123 0
288 683 1
487 123 0
494 ...

output:

Case 1: 7694

Case 2: 4054

Case 3: -1

Case 4: -1

Case 5: 19645

Case 6: 14672

Case 7: -1

Case 8: 10284

Case 9: 18336

Case 10: -1

Case 11: 26657

Case 12: 39008

Case 13: 41077

Case 14: 46207

Case 15: 42054

Case 16: 31410

Case 17: 28908

Case 18: 24359

Case 19: 35273

Case 20: 34010


result:

ok 39 lines