QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#779074#8572. Passing Gameucup-team3862TL 1ms3644kbC++204.5kb2024-11-24 17:20:512024-11-24 17:20:51

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3644kb

input:

2
4 2
3 2 1 6
3 1 1 3
2 0
1 2
1 2

output:

7
1

result:

ok 2 number(s): "7 1"

Test #2:

score: -100
Time Limit Exceeded

input:

1
300000 204334
809492393 304618667 173130445 377106790 364888630 949045125 622060683 557772818 216607577 848817467 862855568 507840723 120816645 639713488 741781998 682531787 685261161 601686403 355792373 162819930 710057718 234560726 998604853 678957602 485413982 855985802 109303681 979706626 4822...

output:

31313390701066

result: