QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#32372#1878. No Rest for the WickedlarryzhongWA 3ms5784kbC++171.9kb2022-05-19 15:25:422022-05-19 15:25:44

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 5784kb

input:

4 3
2 3 1
1 1 4
1 2 2
1 1 3
1 2
1 3
1 4

output:

2 4 2 3 

result:

ok 4 number(s): "2 4 2 3"

Test #2:

score: 0
Accepted
time: 3ms
memory: 5612kb

input:

1 0
138088047 507565360 682493255

output:

682493255 

result:

ok 1 number(s): "682493255"

Test #3:

score: 0
Accepted
time: 3ms
memory: 5628kb

input:

4 4
1 4 3
2 4 2
2 4 3
3 4 4
1 2
1 3
2 3
3 4

output:

4 4 4 4 

result:

ok 4 number(s): "4 4 4 4"

Test #4:

score: 0
Accepted
time: 1ms
memory: 5628kb

input:

4 6
178072496 839649317 45448733
194708659 935253395 946862151
18249835 428083054 205076387
264987407 972905801 813257839
1 2
1 3
1 4
2 3
2 4
3 4

output:

946862151 946862151 946862151 946862151 

result:

ok 4 number(s): "946862151 946862151 946862151 946862151"

Test #5:

score: -100
Wrong Answer
time: 3ms
memory: 5736kb

input:

6 9
28300078 870529222 753188708
536298772 594473950 960983978
529901549 892644015 629235196
243957096 964819865 557992404
816732311 926011948 125114736
542880646 854233712 893836623
1 4
1 6
2 3
2 5
2 6
3 4
3 5
4 5
5 6

output:

960983978 960983978 960983978 960983978 960983978 960983978 

result:

wrong answer 5th numbers differ - expected: '893836623', found: '960983978'