QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#340191#5421. Factories Once Moreadam01WA 593ms68404kbC++146.8kb2024-02-28 18:21:502024-02-28 18:21:51

详细

Test #1:

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

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: 56824kb

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: 4ms
memory: 56820kb

input:

2 2
1 2 1

output:

1

result:

ok 1 number(s): "1"

Test #4:

score: 0
Accepted
time: 119ms
memory: 66760kb

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:

4915539756

result:

ok 1 number(s): "4915539756"

Test #5:

score: 0
Accepted
time: 257ms
memory: 67484kb

input:

100000 54
52645 54121 2692
53845 52739 658
88841 87795 9298
79147 80362 6720
80683 80909 7138
30882 28439 3197
85375 85227 6903
80229 77345 445
79601 78148 7956
15262 16666 8402
87894 95824 844
17024 12005 5687
63972 65707 8592
40510 45074 9135
50774 49596 7692
37825 38581 9735
18425 8926 1747
84473...

output:

42231195087

result:

ok 1 number(s): "42231195087"

Test #6:

score: 0
Accepted
time: 438ms
memory: 68404kb

input:

100000 102
16851 15608 9173
34201 33232 4258
54234 53975 3926
85209 83376 6251
7847 6527 2379
92238 90747 5818
74729 75538 1672
98398 98838 6273
53445 54006 4317
32889 33232 9974
12450 15916 1801
40600 40892 1397
81713 79934 4580
28979 30696 8260
90747 94477 5725
54584 53210 3583
53396 53535 1868
88...

output:

175914470238

result:

ok 1 number(s): "175914470238"

Test #7:

score: -100
Wrong Answer
time: 593ms
memory: 64868kb

input:

100000 497
25231 28005 505
36245 34348 7087
59602 57941 1691
77459 74493 7828
11601 4890 9847
11168 11760 3807
97468 93452 8094
14843 13669 488
97738 96869 5615
27369 25231 3081
79596 78931 4604
47155 45416 1728
49273 49193 7851
38358 38735 4842
18025 23117 6165
32677 32970 9931
34174 35023 9709
688...

output:

40575

result:

wrong answer 1st numbers differ - expected: '4545765711714', found: '40575'