QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#175049#7132. Subset sumsZhaoZiLongTL 2ms5800kbC++172.5kb2023-09-10 15:55:282023-09-10 15:55:28

詳細信息

Test #1:

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

input:

2 3
-1 1

output:

-1
0
1

result:

ok 3 number(s): "-1 0 1"

Test #2:

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

input:

3 7
-1 0 1

output:

-1
-1
0
0
0
1
1

result:

ok 7 numbers

Test #3:

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

input:

10 1023
883143256 -498280460 630334270 570356589 -527809586 165589387 940711765 689070096 439819867 -683931378

output:

-1710021424
-1544432037
-1270201557
-1211740964
-1182211838
-1139664835
-1104612170
-1079687154
-1046151577
-1026090046
-1020951328
-1016622451
-974075448
-914097767
-860500659
-855361941
-826878168
-771921097
-769309659
-742391971
-699844968
-683931378
-661288781
-641384375
-639867287
-611855249
-6...

result:

ok 1023 numbers

Test #4:

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

input:

10 1023
943610328 -129243071 -591182147 -499909211 -734908696 246575063 -166609893 -533254143 407939687 553971004

output:

-2655107161
-2525864090
-2488497268
-2408532098
-2359254197
-2279289027
-2247167474
-2241922205
-2155197950
-2121853018
-2117924403
-2112679134
-2101136157
-2080557581
-2063925014
-2025954879
-2000592411
-1992609947
-1988588057
-1971893086
-1955243125
-1951314510
-1934681943
-1934526264
-1920198465
...

result:

ok 1023 numbers

Test #5:

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

input:

10 1023
-700955306 482884110 430391229 186735198 -403950719 -505463641 969158242 -293635466 671026801 -503093908

output:

-2407099040
-2220363842
-2113463574
-2003148321
-1976707811
-1926728376
-1924214930
-1904005132
-1901635399
-1816413123
-1789972613
-1737479732
-1736072239
-1717269934
-1714900201
-1709512855
-1706143734
-1683072345
-1630579464
-1610369666
-1607999933
-1572757092
-1549337041
-1522777657
-1520264211
...

result:

ok 1023 numbers

Test #6:

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

input:

10 1023
-50553646 800043996 -548035397 -883530603 -367960036 -719445258 104926376 -54016790 -770918791 977898266

output:

-3394460521
-3343906875
-3340443731
-3289890085
-3289534145
-3238980499
-3235517355
-3184963709
-3026500485
-2975946839
-2972483695
-2921930049
-2921574109
-2871020463
-2867557319
-2846425124
-2817003673
-2795871478
-2792408334
-2741854688
-2741498748
-2690945102
-2687481958
-2675015263
-2636928312
...

result:

ok 1023 numbers

Test #7:

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

input:

10 1023
304880720 874114091 178570685 98081100 -575059145 -881549374 -759305490 480569181 -802798971 -79166646

output:

-3097879626
-3018712980
-2999798526
-2920631880
-2919308941
-2840142295
-2821227841
-2792998906
-2742061195
-2713832260
-2694917806
-2617310445
-2615751160
-2614428221
-2538143799
-2535261575
-2522820481
-2519229345
-2516347121
-2443653835
-2440062699
-2438739760
-2437180475
-2424739381
-2359573114
...

result:

ok 1023 numbers

Test #8:

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

input:

10 1023
-801627828 -513758729 957054269 784725508 -244101168 609501715 376462646 -984844850 -539711857 -841264264

output:

-3925308696
-3681207528
-3548846050
-3411549967
-3385596839
-3315806981
-3304744882
-3167448799
-3141495671
-3140583188
-3123680868
-3084044432
-3071705813
-3035087321
-3009134193
-2968254427
-2940463846
-2939344335
-2896482020
-2879579700
-2871838110
-2839943264
-2802048252
-2790986153
-2776095124
...

result:

ok 1023 numbers

Test #9:

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

input:

10 1023
-741160756 -144721341 -21372357 -285540292 -503077780 395520097 -782736514 -745226174 18342551 691605412

output:

-3223835214
-3205492663
-3202462857
-3184120306
-3079113873
-3060771322
-3057741516
-3039398965
-2938294922
-2919952371
-2916922565
-2898580014
-2828315117
-2809972566
-2806942760
-2793573581
-2788600209
-2775231030
-2772201224
-2753858673
-2720757434
-2702414883
-2699385077
-2683593776
-2681042526
...

result:

ok 1023 numbers

Test #10:

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

input:

10 1023
-385726389 172438546 705233725 401104116 -710176889 -61551312 647998915 -210640203 281429666 -365459500

output:

-1733554293
-1672002981
-1561115747
-1522914090
-1499564435
-1461362778
-1452124627
-1390573315
-1368094793
-1350475544
-1347827904
-1332450177
-1306543481
-1288924232
-1286276592
-1279686081
-1270898865
-1241484424
-1218134769
-1195656247
-1179933112
-1175389358
-1160011631
-1157454590
-1137187701
...

result:

ok 1023 numbers

Test #11:

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

input:

10 1023
264675271 541475934 -273192901 -912251476 -379218912 -275532930 -216232951 323945767 249549486 872442882

output:

-2056429170
-1840196219
-1806879684
-1791753899
-1783236269
-1780896240
-1732483403
-1677210258
-1590646733
-1575520948
-1567003318
-1564663289
-1542204413
-1533686783
-1531346754
-1518560998
-1516250452
-1516220969
-1514953236
-1507703339
-1482933917
-1467808132
-1460977307
-1459290502
-1456950473
...

result:

ok 1023 numbers

Test #12:

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

input:

10 1023
-741387161 -270846877 217106325 -591735326 880116462 -106469914 -630766902 -404429578 255940605 446894699

output:

-2745635758
-2639165844
-2528529433
-2489695153
-2474788881
-2422059519
-2383225239
-2368318967
-2341206180
-2298741059
-2272588828
-2257682556
-2234736266
-2218848276
-2192271145
-2166118914
-2153900432
-2151212642
-2124099855
-2114868856
-2112378362
-2085265575
-2081634734
-2070359303
-2047430518
...

result:

ok 1023 numbers

Test #13:

score: -100
Time Limit Exceeded

input:

100 200000
-487836595 251449169 753647795 -923177171 -824149977 -731905937 -99866965 971230949 650199346 373711296 -219460164 -818012323 -904342749 -985930381 703799935 -486291758 836758976 376881530 -214741730 -552131089 -834181757 -489010282 65382619 499090988 -153256322 -827853901 -474855634 7592...

output:


result: