QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#864472#9722. Invaluable AssetsWhiteqwqWA 412ms34884kbC++141.3kb2025-01-20 17:13:162025-01-20 17:13:17

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
3 2 3
3 0 2
1
2
3
4 3 5
0 2 3 4
1
2
3
4
5

output:

Case #1:
3
6
12
Case #2:
4
7
15
25
40

result:

ok 10 lines

Test #2:

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

input:

10
7 2 7
886853742 719874125 448575857 90400879 284020666 873946432 968796125
166935672
97276878
429715247
507351480
44632788
336984588
642585955
7 2 7
126777308 646807289 547660232 414727661 472932300 247630355 882287974
45902136
177525785
351869697
940694112
35450107
315748319
623010800
6 2 8
3281...

output:

Case #1:
229604379
20627997
1455026847
2097171114
0
898642893
3314281389
Case #2:
0
152245431
987995193
9738106995
0
771266925
3915978432
Case #3:
10320786933
3978516864
1350176583
9570057909
3784753224
115936302
12477099993
12303645585
Case #4:
1207572276
8464194956
5425832840
118812936
9412514576
...

result:

ok 79 lines

Test #3:

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

input:

10
15 2 6
19747594 982144089 628809175 436731171 869697577 986981896 457278564 684107390 513342389 74875760 187949688 192856132 999702745 879426585 713289149
806423888
823713250
95846734
548259652
906037375
54975682
14 1 5
990066576 102528602 118806349 945448908 274460934 9827867 122335075 553744953...

output:

Case #1:
12465755604
12984436464
291210342
5865108798
15643011978
105684264
Case #2:
3529429370
16925843840
8335497594
10252711040
13593600884
Case #3:
497916550
601323142
4870687620
5687613270
0
6150558022
2755689728
Case #4:
48683016
0
5833049739
9011304006
0
Case #5:
12906315
4181421666
234752244...

result:

ok 79 lines

Test #4:

score: 0
Accepted
time: 2ms
memory: 29244kb

input:

10
13 2 14
300981012 260262133 891079138 471740297 216027870 717882999 865281324 172589829 325481403 935651672 833110201 168421637 852958793
542144743
950129779
823788594
283332700
385387208
222361782
807489738
413352825
940069746
306096850
770514720
941683548
46693042
748841869
13 2 10
816414622 53...

output:

Case #1:
5638527060
16020656457
11870764716
948087993
2605678092
330138030
11479592172
3109059198
15628315170
1236605307
10592191740
15691253448
0
10072043316
Case #2:
8856406851
8493457260
8055514794
1489600029
677144649
8005834992
3547410807
13043617974
7766776668
7381237908
Case #3:
4306059144
44...

result:

ok 112 lines

Test #5:

score: 0
Accepted
time: 5ms
memory: 27016kb

input:

10
9 1 8
317830264 852767977 856070012 270634196 485126767 604847535 81831589 655418111 614448596
435715350
152511993
20198292
339983740
305304112
637797778
364169144
139016418
10 2 15
773104804 818213025 369487076 113865045 997519107 121690226 426615618 117696172 335172199 259791850
612057644
28788...

output:

Case #1:
1273700002
141360808
0
699310342
516284878
2904135442
844422766
114369658
Case #2:
7620255966
1615488657
0
15968204436
15592397160
10520026203
7762942314
0
6031148313
3601364370
9870881259
5875687287
10603543371
2591460204
16739732757
Case #3:
3144970696
3047915992
5457834700
254307220
2147...

result:

ok 120 lines

Test #6:

score: 0
Accepted
time: 28ms
memory: 29016kb

input:

10
9805 1 8307
524275211 721274209 904959615 368545834 432909240 289424665 329061636 624827981 285000886 771886265 721745177 721430587 428468897 227857646 213911395 60149691 726660550 61567030 671481466 384470439 76130217 937435493 177173869 998861418 992494977 64570404 314829882 912507529 78472887 ...

output:

Case #1:
743209614100
3667992192374
45538535498
4803085872
635350660126
8171267211690
2110191821514
6705564860052
3368941207080
5203504245690
2575610513578
747412743122
5307423724
732226038678
1341703506452
7477531007600
639674441246
1244645350566
2043126130374
2084996138008
4246248777336
4957954860...

result:

ok 78576 lines

Test #7:

score: 0
Accepted
time: 28ms
memory: 28212kb

input:

10
9505 8 8170
398185467 244849218 677116374 985966000 315029421 479096325 319270188 612288616 913681571 641935431 884227101 249951372 22406576 638193170 249902358 422649685 357707388 170729833 460265114 991849005 532482563 199477696 222447037 596388146 892893460 627863678 820066986 615044536 686714...

output:

Case #1:
5809510820075
3532556694776
2414036619636
22849847452862
24524190384034
1626283235125
11024174086689
2941116203336
2766323095810
1272573035929
24688052283894
1293378665273
2042551667252
62597316955
186015048406
18509112058361
2618234135474
2407288506421
16840190445474
25260201533274
9091067...

result:

ok 75554 lines

Test #8:

score: -100
Wrong Answer
time: 412ms
memory: 34884kb

input:

10
63050 693 53985
742755435 437714835 225451476 607048701 46649346 912846377 338845735 69287356 791528849 576195687 202431447 111166261 849313359 430560547 64834242 188564725 543688546 740835399 756600828 944987105 345411177 970499919 857150026 598732209 275526131 889167311 515061927 215137648 9245...

output:

Case #1:
484255927843221
183280113217366
140297236618723
1543650405882475
3534152808822
27179452765807
310155176707557
275935892845290
1260649770204358
8692745120098
794238276870411
154516776130495
19352351775250
905748923882896
1316734728044885
646333005523278
2566763191343
153765406700
45503555770...

result:

wrong answer 16th lines differ - expected: '1316734728044858', found: '1316734728044885'