QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#102370#6194. Knapsack ProblemQiulyWA 28ms5772kbC++143.4kb2023-05-03 10:43:512023-05-03 10:43:51

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 5644kb

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: 28ms
memory: 5772kb

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:

16156444320083421
24563286741284448
29418505654593036
30685178855184790
21026118053726857
27271090098878024
28831028447377015
34576220839886347
9058893053343678
21524515348743750
6656882249783544
16750000596740792
11217846865301187
12674726744043780
33873195322453492
3890224941589558
319027573533985...

result:

wrong answer 2nd numbers differ - expected: '24565535429631234', found: '24563286741284448'