QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#345042#2544. Flatland CurrencyzmWA 22ms17640kbC++142.2kb2024-03-06 01:22:312024-03-06 01:22:32

详细

Test #1:

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

input:

5 57
9 14 31 18 27

output:

8

result:

ok answer is '8'

Test #2:

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

input:

4 50
11 11 11 11

output:

12

result:

ok answer is '12'

Test #3:

score: 0
Accepted
time: 15ms
memory: 11716kb

input:

100000 89648823509660
921733427 402270498 51157221 585477094 435728758 913951087 580580944 557082810 585086423 837912728 799129405 867009344 751591136 714946046 464999915 256043168 416678301 183246216 569365122 479031618 435168577 31068363 903791719 497652990 960987871 223120213 395437892 112869678 ...

output:

200414

result:

ok answer is '200414'

Test #4:

score: 0
Accepted
time: 15ms
memory: 15500kb

input:

99999 3234700062922
394766137 401419056 55997758 205712163 585962152 750591556 245421581 607883471 437707305 758188075 522354844 202404802 307099733 99935245 321784033 643800024 481548024 43007287 404431495 848761213 352455926 541535791 702868758 875691279 485597478 119612707 776231855 48839061 1144...

output:

61505

result:

ok answer is '61505'

Test #5:

score: 0
Accepted
time: 14ms
memory: 15256kb

input:

99998 86112926227914
869872247 684744959 824877228 56916375 758945367 128605666 283377693 33576989 443651099 153762116 163983342 366835792 816402292 863078123 487517337 884155303 155032070 26565182 354013355 820537114 239071699 443320558 470694592 531705267 151650392 734780493 229014960 750198362 64...

output:

200044

result:

ok answer is '200044'

Test #6:

score: 0
Accepted
time: 19ms
memory: 14684kb

input:

99997 68088898499161
684762234 212043311 111726077 799475781 502283626 527771716 232335052 250756028 374551362 101885838 831787899 187988661 488853660 347255010 936784303 526572911 618308527 763422946 682461738 114505538 466010668 976944572 410362920 865495559 378529442 962576489 11461567 119627044 ...

output:

200283

result:

ok answer is '200283'

Test #7:

score: 0
Accepted
time: 19ms
memory: 14860kb

input:

99996 31123987056923
811521298 923167157 268296554 713128986 529005433 6960604 560380182 915744363 677585658 283164493 623069887 93144993 785280453 273822868 519631154 173587478 894173238 309943194 185814329 887390123 613170876 277939354 675988088 550116615 485896461 227037085 722252712 239808335 32...

output:

187400

result:

ok answer is '187400'

Test #8:

score: 0
Accepted
time: 11ms
memory: 13384kb

input:

99995 91139805919556
450894725 525278995 449553688 598304327 433705782 895456537 123914232 273002894 616667006 697602183 149033912 491949510 15540278 42693327 52691855 294596279 130155839 148350866 694860784 228485201 18083366 140953026 690848775 96198613 412227936 593631893 221843918 735173984 7182...

output:

200713

result:

ok answer is '200713'

Test #9:

score: 0
Accepted
time: 19ms
memory: 14952kb

input:

99994 67034670830840
553137085 204710139 274056036 240585044 341821631 475856803 284003867 996450703 128779653 736218387 648508219 662402156 480212555 521751686 10550484 533354969 524242405 406277112 783479961 172994737 199250461 82614434 78653410 827438820 475150911 180706899 918964333 220980538 53...

output:

200496

result:

ok answer is '200496'

Test #10:

score: 0
Accepted
time: 11ms
memory: 14508kb

input:

99993 36781160415837
21578083 789828836 352590898 309342098 763543785 587415144 306693571 54214039 167763504 261699463 99817103 657836578 993145500 697275884 393294550 265277542 968071542 38198769 2701210 354554023 24369285 234491743 909684196 292006814 845478230 703274719 866473713 243970132 130064...

output:

197196

result:

ok answer is '197196'

Test #11:

score: 0
Accepted
time: 13ms
memory: 15560kb

input:

99992 42191781801868
646131581 9801523 748612444 889119663 683785721 678948237 768920069 118833474 745215515 272130908 344810642 895201366 434228570 635662952 127653217 382524680 986110783 833258657 931235236 568751733 645995951 724427051 854173860 829495299 66828956 847687264 298938163 58241456 146...

output:

200518

result:

ok answer is '200518'

Test #12:

score: 0
Accepted
time: 15ms
memory: 13488kb

input:

99991 25160109426611
944486913 391572327 68258312 76143226 203993453 938609554 473735421 501317936 167189998 236927051 638610803 412688425 765593330 976632225 77302695 866369842 333913678 941748 856949353 763693509 45979026 22106071 31461672 848002799 984292075 41140949 520755596 592587068 516812880...

output:

172360

result:

ok answer is '172360'

Test #13:

score: 0
Accepted
time: 19ms
memory: 15672kb

input:

100000 2661708139205
671058566 124672319 183392169 803800261 476253577 492641437 153800244 587660132 201506049 364528343 550963192 174930169 736386476 466746467 183504559 712271981 265455363 484100086 471130757 553825527 141503979 253998808 368050173 140606124 224727988 252991973 215757468 400699813...

output:

25017

result:

ok answer is '25017'

Test #14:

score: 0
Accepted
time: 21ms
memory: 16500kb

input:

100000 827521217316
40089276 22935121 27517762 20546643 12218188 27490082 8959159 10898508 17297167 5441024 7358869 8369649 34036971 34737391 20232933 8866509 12856783 9902794 16470293 13901658 7333309 11732498 37668186 24527362 9584909 7669644 20395948 28267171 40616096 13358083 20473127 17219747 9...

output:

125166

result:

ok answer is '125166'

Test #15:

score: 0
Accepted
time: 11ms
memory: 17640kb

input:

100000 27341744286289
242193848 493320977 251137178 493298896 356267737 160681949 214922483 197010188 626677871 280004292 461944157 361326847 493582897 298258493 653295821 198570548 254984972 315571582 354301561 377210402 424089861 584368766 100556569 429974037 428506626 172072423 104856149 41837094...

output:

225211

result:

ok answer is '225211'

Test #16:

score: 0
Accepted
time: 22ms
memory: 16596kb

input:

100000 302588405898
444978158 258233548 235353934 325817183 55922928 237654447 39147624 940238946 22318883 118298684 11244338 231765904 787610001 476872068 919013336 106565734 405854651 646211902 535002516 493683692 156206999 51160684 204078054 73529096 182887413 146755933 98981579 272170253 2208654...

output:

24990

result:

ok answer is '24990'

Test #17:

score: 0
Accepted
time: 18ms
memory: 16464kb

input:

100000 7738227752998
442107323 83591044 354015993 295402088 697395866 889533941 871802441 178784442 350420446 325712873 376959293 635164236 172646489 89530147 51744991 230449048 201217753 47832162 160841524 976873826 191221224 156746108 57174184 364179443 217400391 412494842 618792037 830525231 1054...

output:

125002

result:

ok answer is '125002'

Test #18:

score: 0
Accepted
time: 22ms
memory: 15656kb

input:

100000 25357310293416
310831787 102038583 166806202 653860612 246912264 561871817 507822786 113465911 276210282 119223647 249530229 129554184 54187483 55089809 695348431 113340889 13509596 81265333 304955877 263451516 993821136 167179939 181540399 666658892 297956407 385210348 245567609 287104957 12...

output:

225028

result:

ok answer is '225028'

Test #19:

score: 0
Accepted
time: 14ms
memory: 16536kb

input:

100000 1868303585177
162788559 219460833 132671959 107869654 140703299 668851946 136912029 119390819 363360853 108251799 173847769 549829172 650201471 316486543 333442163 119064789 303225057 335558302 338507568 157364169 180075014 259351948 329470883 171481254 657460941 166533569 141310674 253121368...

output:

19228

result:

ok answer is '19228'

Test #20:

score: 0
Accepted
time: 12ms
memory: 17084kb

input:

100000 12119266503924
126332884 426286267 136798334 163924424 447497657 148535204 124512864 191196279 194167199 180305589 781791161 589299726 325621282 367961598 128332029 189044059 183700834 251106708 333821212 376082138 110582624 197238114 369817528 577092032 186299694 149724124 391847712 38871092...

output:

95934

result:

ok answer is '95934'

Test #21:

score: 0
Accepted
time: 13ms
memory: 15096kb

input:

100000 10729854101733
320234391 138206852 49426234 126414053 81938809 51878074 48696199 69358354 60704899 54962204 46674924 48696139 65414089 191884037 248803826 297175551 159457773 84648599 80097994 59689049 59873724 61525449 43392129 74320204 150632518 64712119 237800986 55630969 278791076 7310679...

output:

172793

result:

ok answer is '172793'

Test #22:

score: 0
Accepted
time: 11ms
memory: 15944kb

input:

100000 231224450213
919064666 214121334 166182329 118160604 446926713 585695117 185895589 356818096 99425614 75589544 582134522 800047976 204551439 12613859 199071277 338611913 503432797 72339079 123962758 228113334 316575286 52675579 65083573 942952331 339053663 40053174 56284873 170010699 73246109...

output:

19190

result:

ok answer is '19190'

Test #23:

score: 0
Accepted
time: 13ms
memory: 12880kb

input:

100000 6002879042353
29695679 400285528 98460158 49182849 216411849 242061199 164531239 337449303 124001609 43495967 136137979 245012814 224136521 514320347 27619529 595933712 106771019 106883908 254683947 206840254 109933934 486194728 145406438 8102376 382095697 465154056 132709673 266901577 667645...

output:

95867

result:

ok answer is '95867'

Test #24:

score: 0
Accepted
time: 17ms
memory: 16088kb

input:

100000 19395212157267
218694917 159989624 948801081 74959128 158292473 7621574 773749691 4936168 563361027 464054043 104490614 97136859 236860524 209886728 179994489 602381527 556684211 394765168 30249924 4056444 243693109 176509364 224604389 107302814 243814339 154583269 46571779 361889548 34636119...

output:

172753

result:

ok answer is '172753'

Test #25:

score: 0
Accepted
time: 8ms
memory: 16464kb

input:

100000 3369414440752
648800129 543365091 676677334 828857801 844466271 546163641 852440301 901682528 793614186 798994924 544276499 771316722 796592927 816464121 848409153 904604548 847168244 685266367 856585294 688528732 711958822 510306147 719081587 901483287 770951781 930909497 504166131 502508181...

output:

25001

result:

ok answer is '25001'

Test #26:

score: -100
Wrong Answer
time: 17ms
memory: 16080kb

input:

100000 19810958230342
582221833 643922059 527933074 477100457 547525327 664025133 750708746 489763704 531111162 631924259 666212017 789289202 656185179 584201447 635197564 709702976 568514314 737930126 734962319 520526894 556710854 715521036 507387481 439574516 702980703 440586249 623196698 52899088...

output:

124881

result:

wrong answer expected '124890', found '124881'