QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#639014#8235. Top Clusterucup-team4949#TL 4ms57144kbC++144.5kb2024-10-13 17:39:472024-10-13 17:39:49

詳細信息

Test #1:

score: 100
Accepted
time: 4ms
memory: 57144kb

input:

5 4
3 9 0 1 2
1 2 10
3 1 4
3 4 3
3 5 2
3 0
1 0
4 6
4 7

output:

1
0
3
4

result:

ok 4 number(s): "1 0 3 4"

Test #2:

score: -100
Time Limit Exceeded

input:

500000 500000
350828 420188 171646 209344 4 999941289 289054 79183 999948352 427544 160827 138994 192204 108365 99596 999987124 292578 2949 384841 269390 999920664 315611 163146 51795 265839 34188 999939494 145387 366234 86466 220368 357231 347706 332064 279036 173185 5901 217061 112848 37915 377359...

output:


result: