QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#126771#6194. Knapsack Problemchenchi#WA 1ms3732kbC++232.5kb2023-07-18 23:22:522023-07-18 23:22:53

詳細信息

Test #1:

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

input:

3
2
1 2 4
4 5
3
3226252 19270256 2430652 1187613 12496062 10286165 17494834
24 85 34
4
901133 6693218 13245489 14740234 16186210 11382783 19277321 3855635 16523184 10168517 16195031 971041 10303441 8395899 11618555
529321239 218214127 92942310 207467810

output:

18
1949753378
7832404777567179

result:

ok 3 number(s): "18 1949753378 7832404777567179"

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3636kb

input:

100
4
4488409 9842893 14331290 11289097 15777479 21131954 25620334 6146092 10634508 15988956 20477387 17435190 21923584 27278027 31766493
200477197 258791439 590664017 982949628
4
5484152 19851747 25335961 6555937 12039831 26407861 31891996 10897184 16381166 30749333 36233145 17453055 22937114 37304...

output:

16156444320083422
24565535429631236
29418802996321904
30685727712782520
21026118053726856
27272339796311008
28831028447377020
34577176834491136
9058894962996374
21525085254465496
6657186892229297
16750628911275486
11217846865301188
12674726744043780
33873234230125448
3890237279573366
319038768614465...

result:

wrong answer 1st numbers differ - expected: '16156444320083421', found: '16156444320083422'