QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505487#5856. Candy Splittingxiaowuc125 ✓1ms3832kbC++171.0kb2024-08-05 05:41:072024-08-05 05:41:08

詳細信息

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 1ms
memory: 3832kb

input:

100
5
1 2 3 4 5
3
3 5 6
2
5 6
2
5 5
15
145670 454928 770784 705514 731959 433515 800021 532902 80154 455946 47888 932963 947079 335351 937696
15
309406 768019 203870 178461 188595 347005 626322 963316 210834 956101 555400 901153 818019 160422 648543
3
395517 773501 902528
4
841175 913777 237226 1787...

output:

Case #1: NO
Case #2: 11
Case #3: NO
Case #4: 5
Case #5: 8264482
Case #6: NO
Case #7: 1676029
Case #8: 1992178
Case #9: 5449768
Case #10: 5428241
Case #11: 7319381
Case #12: 1270611
Case #13: 4819696
Case #14: 3833674
Case #15: 45004
Case #16: 65163
Case #17: 34575
Case #18: 32153
Case #19: 5160
Case...

result:

ok 100 lines

Subtask #2:

score: 15
Accepted

Test #2:

score: 15
Accepted
time: 1ms
memory: 3760kb

input:

100
5
1 2 3 4 5
3
3 5 6
2
5 6
2
5 5
1000
145670 454928 770784 705514 731959 433515 800021 532902 80154 455946 47888 932963 947079 335351 309406 768019 203870 178461 188595 347005 626322 963316 210834 956101 555400 901153 818019 160422 648543 124094 5646 395517 773501 566158 192641 841175 913777 2372...

output:

Case #1: NO
Case #2: 11
Case #3: NO
Case #4: 5
Case #5: 502424776
Case #6: NO
Case #7: 408044637
Case #8: 317207498
Case #9: NO
Case #10: 33769888
Case #11: 25914861
Case #12: NO
Case #13: NO
Case #14: 352698605
Case #15: 283601
Case #16: 270330
Case #17: 238028
Case #18: 525228
Case #19: NO
Case #2...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed