QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#335224#5421. Factories Once MoreFarmer_DWA 129ms40200kbC++172.7kb2024-02-22 22:39:512024-02-22 22:39:51

詳細信息

Test #1:

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

input:

6 3
1 2 3
2 3 2
2 4 1
1 5 2
5 6 3

output:

22

result:

ok 1 number(s): "22"

Test #2:

score: 0
Accepted
time: 0ms
memory: 19408kb

input:

4 3
1 2 2
1 3 3
1 4 4

output:

18

result:

ok 1 number(s): "18"

Test #3:

score: 0
Accepted
time: 0ms
memory: 18740kb

input:

2 2
1 2 1

output:

1

result:

ok 1 number(s): "1"

Test #4:

score: -100
Wrong Answer
time: 129ms
memory: 40200kb

input:

100000 17
37253 35652 9892
56367 53643 1120
47896 49255 4547
93065 88999 1745
5251 6742 5031
49828 50972 8974
31548 46729 1032
56341 56287 4812
21896 22838 1682
82124 90557 7307
76289 76949 7028
33834 45380 6856
15499 15064 2265
10127 5251 9920
87208 93945 9487
68990 72637 6891
91640 85004 2259
4748...

output:

2140040878

result:

wrong answer 1st numbers differ - expected: '4915539756', found: '2140040878'