QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#308034#3584. Daily TurnoversqiuzxAC ✓778ms126140kbC++173.7kb2024-01-19 13:59:212024-01-19 13:59:22

詳細信息

Test #1:

score: 100
Accepted
time: 3ms
memory: 76356kb

input:

1 6
1 1 -2 1 3 -5

output:

13

result:

ok single line: '13'

Test #2:

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

input:

88 48799
-29 51 -94 23 100 -44 -49 -71 99 39 -42 45 65 -28 78 -72 -28 -34 53 -88 78 -46 27 73 56 -13 72 66 11 -55 -1 -44 -24 -28 18 79 31 100 -53 -88 41 70 8 85 -6 78 -50 -43 57 -7 -32 -96 -69 58 -58 21 65 -98 19 57 25 35 8 -88 -41 62 -44 72 -23 61 53 -23 -45 -35 -7 47 47 40 66 -10 23 -24 -97 -92 20...

output:

11252741

result:

ok single line: '11252741'

Test #3:

score: 0
Accepted
time: 290ms
memory: 102896kb

input:

-692982840 189297
-319880894 165778290 -804292010 -905153678 -141539645 744104341 -592456751 45240119 -792186907 142335460 614999455 -214843257 -836389022 288401576 378694316 849003582 -384735495 628858044 454261201 449558021 945257935 -818780631 -935871293 -248039091 -908247714 -810028298 -18310377...

output:

29236338

result:

ok single line: '29236338'

Test #4:

score: 0
Accepted
time: 318ms
memory: 102764kb

input:

-847081208 201777
-362342902 950538897 170409400 354851727 724412466 -555164993 431472288 -402948810 511594694 651665414 200017472 306904258 451470872 367316021 217115121 740714342 -492867023 905716166 -769017028 -478302606 -258209227 566281439 809251360 -356674022 -525604385 -199460024 -413953914 -...

output:

99422567

result:

ok single line: '99422567'

Test #5:

score: 0
Accepted
time: 718ms
memory: 121356kb

input:

-46689617 468654
-873608239 844369497 -586342166 87244063 487246974 -30920724 130461290 872852725 713049323 -897961405 -224206400 -120538066 -384818301 -813867084 714125604 535003985 842837347 685415357 816352739 -81481393 -669897434 -496368655 -837871108 -263338207 867165429 479080381 -258478354 -4...

output:

325205671

result:

ok single line: '325205671'

Test #6:

score: 0
Accepted
time: 229ms
memory: 101700kb

input:

-105024314 163130
399674258 189278497 -570171557 573121394 437349803 713633701 393808694 -453852681 -787237756 -767295024 848259499 473139355 -402247363 715760936 444643380 710777004 -521668817 528953523 944981793 -736461629 169934543 -987916260 -355504488 618029850 973830329 999300082 508244142 566...

output:

43132865

result:

ok single line: '43132865'

Test #7:

score: 0
Accepted
time: 406ms
memory: 103612kb

input:

-669308097 250859
-30957923 -815495614 993038014 -886997997 206435672 -296683788 -501369159 -254681816 650312002 -832243057 -203302371 -810582727 486472638 588596060 296106971 352203572 -740414374 166062741 -182542463 -576531936 881035288 522504094 -558279511 -112954183 -640498286 -236782124 5590322...

output:

43429561

result:

ok single line: '43429561'

Test #8:

score: 0
Accepted
time: 600ms
memory: 119092kb

input:

-415865574 373402
537337034 -775449577 -986685122 -415417439 -427343772 882493829 -187997993 990453306 213987186 769635852 -730612457 -636502154 166201993 -349188123 -24615725 459127269 615688966 -733987113 -317247258 -334534978 253617848 492071220 470724675 -573696637 -113167646 227055072 -46147828...

output:

209225802

result:

ok single line: '209225802'

Test #9:

score: 0
Accepted
time: 550ms
memory: 119228kb

input:

-984904548 332557
848322713 -583914591 756630309 779011645 -425502784 699827041 64275178 -880171172 -534031531 -911460107 612260787 974173341 714983930 -227425470 -631004899 495075429 985906938 -408858677 536841560 917582465 -600114146 -754974084 718709902 834494811 227599319 53754380 -840427573 805...

output:

55145126

result:

ok single line: '55145126'

Test #10:

score: 0
Accepted
time: 98ms
memory: 85220kb

input:

-874480785 64520
-568141258 -492904441 -702443562 -739990261 925188732 831347318 123434742 -473296046 -376808574 776449962 149742619 -333724977 -585465734 355455841 -639240780 661131574 -220739797 101459511 749085594 -316085814 679136591 512664698 -39847220 403513372 17697173 189427865 -948945991 -1...

output:

12828522

result:

ok single line: '12828522'

Test #11:

score: 0
Accepted
time: 173ms
memory: 90352kb

input:

-844462533 113704
951387629 -789228011 -67659437 229227600 858431468 -11859968 133998376 -980867902 -809257080 -156771729 570219542 230262976 606047982 505316601 -207267564 55124942 497651928 75450099 -391929961 -866579009 -766802245 -775940721 827975501 -736069973 -341642708 626585175 -482032827 -4...

output:

36648253

result:

ok single line: '36648253'

Test #12:

score: 0
Accepted
time: 459ms
memory: 118292kb

input:

-639094816 282990
487052011 -688641544 630504506 352924261 -418550232 727183537 -962676115 81914054 650345945 -152960350 -114364795 579870981 687372350 -358401273 -245857985 -691453144 164830123 -430830549 -790051168 -656478422 139768265 -255714057 233580342 690423501 -551976520 -534428518 -82152138...

output:

53730890

result:

ok single line: '53730890'

Test #13:

score: 0
Accepted
time: 35ms
memory: 82212kb

input:

1 205998
63 -55 5 81 -60 -24 -74 32 -57 0 3 98 32 -12 -93 39 36 -60 -14 -53 -90 -48 -50 2 -60 26 0 92 3 -80 83 72 9 -53 8 -88 84 56 -22 -44 -8 -33 94 49 10 -3 -68 84 -58 70 98 -10 34 5 13 48 60 68 25 -79 -2 -15 71 23 79 82 99 -39 8 51 -8 -49 -86 -43 -57 9 47 -28 55 85 18 -62 -46 13 42 30 -45 52 -99 ...

output:

29514987

result:

ok single line: '29514987'

Test #14:

score: 0
Accepted
time: 573ms
memory: 119840kb

input:

-860057994 338805
-121717271 289169652 100623933 632828260 639632866 -968616101 -845994380 485160188 -637608241 387990137 857691217 439507774 44333041 -729956628 -967429360 400748320 -693822734 88912002 304373898 -83105861 766149072 -823501469 935740502 996141753 740927 646458829 690788363 521631053...

output:

163968521

result:

ok single line: '163968521'

Test #15:

score: 0
Accepted
time: 31ms
memory: 79516kb

input:

-438024235 20846
883920232 57654665 324722295 -624176905 -655958558 495671430 443793401 746502299 -938444280 -357527306 709870564 836501010 38946484 804861354 -216112611 210972054 957336935 577585608 -335640215 -34239864 -799442741 116452497 479654663 583696122 101830896 339665244 -923333155 8098343...

output:

1906850

result:

ok single line: '1906850'

Test #16:

score: 0
Accepted
time: 148ms
memory: 87768kb

input:

-984823050 86364
-576401231 136397105 -449039691 -730522380 -970873197 -875545444 638806254 -153729061 960295318 700602544 -362743648 410720329 -177150127 759428603 -1227119 406746096 770040418 -316244723 -154913818 185390022 -76845491 -199990369 -92323329 -987024726 -788599140 -554632205 -221098497...

output:

12460624

result:

ok single line: '12460624'

Test #17:

score: 0
Accepted
time: 539ms
memory: 118584kb

input:

-642386998 326758
-667998316 532875866 650367814 664181383 609784634 175396744 504496384 528275131 903218059 662163322 -976061604 -37165541 538278415 98030378 580260172 515255468 -732843779 -475901612 228445267 -14662672 -927246352 -289452128 -273207171 -999881039 -478170467 351183113 138869608 4201...

output:

56946960

result:

ok single line: '56946960'

Test #18:

score: 0
Accepted
time: 237ms
memory: 101732kb

input:

-345137235 155576
-260615762 -806964557 -304134533 644948627 -264683691 190569731 -635967569 -796187555 -620846071 797136062 263534689 984294000 -643012106 606621092 93997008 -729959850 -771112748 113144210 -220477488 -944789196 504239760 182809731 -418737391 -659768483 379698641 647065820 68464820 ...

output:

37917384

result:

ok single line: '37917384'

Test #19:

score: 0
Accepted
time: 46ms
memory: 83640kb

input:

-329648984 38916
-493771958 -74657704 -336479320 -718294330 -416303312 275179952 143304929 308213353 -501112885 -745239790 -120525641 160701254 340911388 284209528 -286894197 -675549053 744090318 -155118674 111824372 -664936194 381672413 -140296064 -685466037 -569206214 -273993849 -543862846 -624164...

output:

33406

result:

ok single line: '33406'

Test #20:

score: 0
Accepted
time: 354ms
memory: 121832kb

input:

-646248790 330204
-707692191 619122474 681123489 -478584900 377895747 255010083 -281909827 -594240804 -602296129 -113540068 836305497 -972607414 612412518 -114858261 -796524203 -163122186 -219890028 418621736 -501927094 -877594077 470892163 -425025843 757811163 -33291618 -795538751 -842411265 -20187...

output:

279465

result:

ok single line: '279465'

Test #21:

score: 0
Accepted
time: 272ms
memory: 120992kb

input:

-28126747 268155
299095251 -732879679 -775628231 -430061266 -618129103 -573687885 -715864837 289717221 149110084 -64054250 -536243842 -255336671 -951487943 -557220502 -522853211 562250787 -968372503 -908617511 592235025 -866880459 975436327 -185873520 623427983 -127463203 -748696203 -99467674 -50415...

output:

226567

result:

ok single line: '226567'

Test #22:

score: 0
Accepted
time: 27ms
memory: 82744kb

input:

-705229182 31714
-531155619 -773715209 454337296 -780860135 -981746203 627077753 -744825216 -789693806 -917497601 776980223 -854288473 188986450 -876502100 461182330 761331637 602957049 -776501719 -444938349 -213034758 133659860 -300686839 -230277889 -69393738 103470536 -382195907 -912609709 9786864...

output:

26374

result:

ok single line: '26374'

Test #23:

score: 0
Accepted
time: 379ms
memory: 121844kb

input:

-701873722 346965
-285561574 -913868072 -438680739 -642478208 -635510569 -418420148 -490603381 -227730031 127188597 337281552 -838723115 130135253 115810057 263863418 -763864366 -386429932 -156749189 -868827048 -882054639 -974024169 -528194168 219380847 -794616295 -999526687 -821776889 -614744 -8193...

output:

290370

result:

ok single line: '290370'

Test #24:

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

input:

61 47299
-31 -12 93 95 31 63 -4 -74 51 -39 56 -71 -88 86 19 -25 -47 -83 -42 44 -98 81 53 -83 32 -39 -47 86 10 90 -64 -86 34 -78 79 -20 -60 57 -69 40 -8 -14 -87 90 52 -25 17 84 -82 -95 -63 24 -41 9 79 -78 -86 -73 -100 6 -75 45 -93 -26 -26 -41 6 -47 74 -16 95 -83 78 -52 56 -86 -63 -58 -95 57 -69 29 87...

output:

5342957

result:

ok single line: '5342957'

Test #25:

score: 0
Accepted
time: 183ms
memory: 101220kb

input:

-416215727 179399
-334814367 -584154660 230168739 -143379055 -418882822 722760193 493677894 -70338017 -531171850 126086177 -130443997 738296126 832569559 -861113421 -255017398 412571419 -356230882 -832896968 -218524363 -593299568 -66279966 -646898403 -215724853 -176889560 -610745381 -447982517 -2837...

output:

151839

result:

ok single line: '151839'

Test #26:

score: 0
Accepted
time: 144ms
memory: 102324kb

input:

-721117726 145984
-371962404 -913036881 513265819 722849544 -726408598 -540164553 929387198 166856627 -353556945 -895550340 -18616251 788980463 -571004323 -298962520 -737714255 -455939963 -723485309 -653520030 -149166288 -58499950 -992691819 -326542244 -334932897 -740352110 -13281491 -882696356 6779...

output:

120214

result:

ok single line: '120214'

Test #27:

score: 0
Accepted
time: 513ms
memory: 125516kb

input:

-223945242 482162
662120088 333852753 -297340698 -728192196 659246833 80792878 431681037 495711925 -347540508 -167261077 -565727437 -495854718 -117805263 -493578357 -612753911 -307990010 -338456684 -421052983 -385176499 -624076176 -583009093 240794284 218303918 610040480 600505048 -440739215 -875659...

output:

403078

result:

ok single line: '403078'

Test #28:

score: 0
Accepted
time: 212ms
memory: 101648kb

input:

-369349426 212793
586831094 -464703126 -174327429 -240678370 -439913404 -528574185 -262666411 -107428626 -273070717 -594856773 793051113 -814057455 614350220 -239514960 -431300609 -423024612 -93750438 254742576 -491951660 -857092321 -247070933 -130485801 -138981611 -236485544 -66829486 -738864690 -1...

output:

175962

result:

ok single line: '175962'

Test #29:

score: 0
Accepted
time: 415ms
memory: 122280kb

input:

-46394335 393087
-487869730 -124563028 -629316691 -416737604 280006631 -820215006 -937506102 -273233821 -470603680 -795442712 652103395 -955195569 -755051399 -573298418 -135729195 -150347216 714037674 -182756776 -532374945 -158886617 248840557 127564501 -586221483 -884100791 -450513842 -248460332 -5...

output:

329983

result:

ok single line: '329983'

Test #30:

score: 0
Accepted
time: 234ms
memory: 121136kb

input:

-883947246 275597
-120319082 105714474 158690420 -931859133 -367640233 -816303755 -312483518 -512535254 -851435755 17458100 -195588602 -131213107 442571282 -770077323 348192832 -959197371 -716253216 470646603 -694446377 -839797329 -944159675 -129842005 -932898782 -854126570 -275203825 -452225244 -30...

output:

57842

result:

ok single line: '57842'

Test #31:

score: 0
Accepted
time: 378ms
memory: 126140kb

input:

-373643387 447525
-205100430 -499699438 -536945284 -214283803 -628164829 -260092833 -148253859 -195381889 -299083639 -76119465 -817282553 -351776353 -954420784 -57979679 -524329282 -598004739 -288871638 -410365045 440070189 -967360969 -894327609 -5953964 -354332610 -502018245 -861136718 -393473005 -...

output:

95895

result:

ok single line: '95895'

Test #32:

score: 0
Accepted
time: 402ms
memory: 122272kb

input:

-247252579 469452
-230059721 -741910418 -42898416 -290871756 -843294412 -104280727 -476053704 -721522759 -9669542 -297531465 -826074474 -359636276 -38360833 -9289711 -464064388 -347637943 -696369861 -570507743 -958981965 -971972205 -384965738 -750734557 -676279641 -631586977 -648337890 -913239775 -5...

output:

100401

result:

ok single line: '100401'

Test #33:

score: 0
Accepted
time: 59ms
memory: 88244kb

input:

-161858628 67919
-364563207 -911029944 -241828995 -424354712 -52798369 -652868550 -663784423 -135554003 496903000 846022878 -19281151 -677005520 -224013334 -844178035 -714044364 -952468756 -24312105 -699989438 -994478465 -621803223 -110643344 795002087 -756820062 -35473714 -972810069 -197274889 -983...

output:

15006

result:

ok single line: '15006'

Test #34:

score: 0
Accepted
time: 169ms
memory: 100236kb

input:

-564973315 196869
-229500619 -36995738 -117302309 -541284899 687156283 -330743012 -745254697 -687082549 -121732815 -785373058 14675384 -182385082 -240808225 802537647 -698273407 -566687054 -12735320 -999012235 -18985138 -191009215 -71090000 -774464270 -366683282 -211361410 -563791225 -113694741 -731...

output:

41207

result:

ok single line: '41207'

Test #35:

score: 0
Accepted
time: 42ms
memory: 90328kb

input:

850544363 178453
970388759 669001200 472677728 407679109 394721654 396014693 472229904 950064319 604016799 312470667 581487572 286403436 152802913 111043420 995998811 969016896 495647559 694891360 89729659 197002822 902139156 962489258 962824279 434882312 325042810 454834188 634581291 663589480 1118...

output:

15922825831

result:

ok single line: '15922825831'

Test #36:

score: 0
Accepted
time: 348ms
memory: 123500kb

input:

-808797225 475754
-944961703 -955925494 -891844126 -810107428 -209207011 -804831715 -225273233 -415310674 -207769417 -201192807 -281793806 -187938655 -957282393 -678367092 -152687608 -361667346 -231431337 -435975041 -19038351 -147514835 -753044362 -220360614 -58758965 -657902278 -792177434 -70108134...

output:

0

result:

ok single line: '0'

Test #37:

score: 0
Accepted
time: 172ms
memory: 107792kb

input:

-668620308 258251
-720678453 -354991238 -514306414 -895372884 -823973496 -263208443 -588208739 -909578569 -995224131 -684956666 -296546675 -619763188 -566532532 -714532778 -338942961 -435908159 -717932148 -853749033 -932851448 -437899207 -562603773 -84286499 -464771335 -253060755 -568751105 -7135672...

output:

0

result:

ok single line: '0'

Test #38:

score: 0
Accepted
time: 153ms
memory: 102484kb

input:

-882901989 218008
-711051097 -904334412 -682837210 -973504743 -832613745 -596320271 -594212900 -491854787 -65445225 -382039213 -984243485 -550768045 -172173401 -409098384 -417680721 -707158466 -889989585 -752035626 -396290142 -75777798 -922482023 -306746332 -220777264 -356885772 -3394474 -642195643 ...

output:

0

result:

ok single line: '0'

Test #39:

score: 0
Accepted
time: 295ms
memory: 125556kb

input:

-206784327 404816
-422308839 -366257066 -860714032 -711232445 -552272480 -57142591 -951032687 -842869902 -379943923 -547462923 -295137759 -948929499 -663766846 -889674832 -111241287 -395951579 -907599467 -686193733 -805456083 -271543481 -114499039 -432749174 -80745028 -252291581 -630651318 -73657941...

output:

0

result:

ok single line: '0'

Test #40:

score: 0
Accepted
time: 145ms
memory: 101392kb

input:

-883599705 179922
-172049793 -369565590 -561315172 -756077649 -119964781 -310167324 -190629634 -809389234 -890857758 -317631529 -182764583 -64731724 -694482019 -77996022 -736115793 -361551054 -82107213 -762840850 -788390756 -626344444 -377490475 -205699669 -13898677 -897022629 -904797607 -784295088 ...

output:

0

result:

ok single line: '0'

Test #41:

score: 0
Accepted
time: 112ms
memory: 111148kb

input:

592590915 443277
182534460 887778720 948015379 546264278 2563281 353309160 455578797 2443909 228227545 641587315 751900707 901747001 604885340 250794126 408255490 926662713 578319243 908230004 726145132 449638420 33764928 634809575 268834718 346691204 323327186 892856146 456979666 234782594 40825671...

output:

98247471003

result:

ok single line: '98247471003'

Test #42:

score: 0
Accepted
time: 99ms
memory: 109124kb

input:

339702931 386724
31025318 226412080 408334541 594773309 68233888 930431257 914378295 689726391 11623292 524626273 960339000 169079751 15174432 432078537 611555700 530518636 528935227 385751066 145819526 656337701 732999456 976117429 433019906 582411261 409052120 645904808 467753820 861210454 8792459...

output:

74777919450

result:

ok single line: '74777919450'

Test #43:

score: 0
Accepted
time: 58ms
memory: 91504kb

input:

329016661 285231
463122455 643900940 534305516 865949611 -42558899 307604894 -145560211 994028603 -150177430 955553598 829215478 965415496 315493096 781681504 903857631 336442537 394928162 430425632 -377723349 -91912889 54833987 -327810334 960222443 702142311 764873594 63234525 -571940646 607192502 ...

output:

22231231788

result:

ok single line: '22231231788'

Test #44:

score: 0
Accepted
time: 99ms
memory: 101996kb

input:

795353801 475091
343166151 722868549 637087852 225984487 327487220 551949854 -835953292 738317487 617718726 466672873 345099510 652936728 598206903 634700403 261579015 -964052855 -408861666 590143835 667554970 170913369 -935853581 332346497 772409760 830283601 934922839 435824401 674220988 -95503454...

output:

61208386687

result:

ok single line: '61208386687'

Test #45:

score: 0
Accepted
time: 52ms
memory: 89320kb

input:

40829836 247763
777348594 -584307244 -220604669 995531628 453490723 838403755 838052880 439748834 619149806 825436712 911198626 883377757 465123850 429907357 -488741298 857357565 582343358 601715468 -16069147 190272665 -65333100 656187584 -575948925 976348930 828595174 317005262 184526623 479654310 ...

output:

16632258851

result:

ok single line: '16632258851'

Test #46:

score: 0
Accepted
time: 104ms
memory: 98156kb

input:

28288719 433398
-988652328 578626571 337177965 157330744 553075785 -709557327 266152992 587955798 364820463 -817107678 -725256822 760876359 207695423 -720483772 -568219380 764620805 -488402980 183630074 560156072 -20558023 -635376973 772215463 962428515 922572060 -561051919 52060227 662839560 -98664...

output:

50980345861

result:

ok single line: '50980345861'

Test #47:

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

input:

-1 6
1 1 -2 1 3 -5

output:

9

result:

ok single line: '9'

Test #48:

score: 0
Accepted
time: 105ms
memory: 100968kb

input:

263358196 495454
568747628 80412650 274931755 979439962 -72112540 434517307 -638881743 340798561 909992257 142543408 -843296047 543809661 127746827 -601829599 728821525 324955508 -26974011 538895163 443038032 477129070 741063488 698794773 380610912 444748663 714485275 981461493 -760070864 299732914 ...

output:

66945970960

result:

ok single line: '66945970960'

Test #49:

score: 0
Accepted
time: 29ms
memory: 76532kb

input:

508136813 124725
-288335887 626042949 -562241123 251615643 178784504 754971821 -410244798 -606255207 394262929 494815022 985498349 536749653 -295129172 963444907 942856959 318175147 454085510 -703177513 -8908658 -549524471 557145192 -750721560 -309742642 820729053 -365431072 -199932954 462765776 135...

output:

57809184

result:

ok single line: '57809184'

Test #50:

score: 0
Accepted
time: 58ms
memory: 82128kb

input:

533073325 325527
923638821 -482795612 592628057 92735789 489811530 -81163963 264832491 616205332 222983921 904440504 -710509534 -165485351 446943407 -545650591 -674721379 -664559070 156986948 -246305165 -786691989 -227841960 -189544380 -585378166 356567039 -914059501 655570823 938604216 689854033 15...

output:

88317618

result:

ok single line: '88317618'

Test #51:

score: 0
Accepted
time: 6ms
memory: 74596kb

input:

679934043 66002
651607642 -535749431 -444293069 -236060484 421706853 457310911 -616805891 913631851 -924179303 -998766679 -991894899 530917384 -149721113 757411925 81541448 35158993 -55111419 -507496168 579666107 300707803 -851383747 -498182410 638645282 -384893800 -802412216 128193508 -442752678 79...

output:

15040186

result:

ok single line: '15040186'

Test #52:

score: 0
Accepted
time: 75ms
memory: 85048kb

input:

856064378 387111
939528015 551878159 -897601600 -830243515 -892194516 43229253 -92787875 77827259 -749176869 -878205005 -448774650 699226496 -413286191 -918352257 -30571557 434560182 -650568259 -584683380 925908687 711756667 758642498 -561079134 -47493322 -362893014 -560020866 434880637 201184258 72...

output:

172266601

result:

ok single line: '172266601'

Test #53:

score: 0
Accepted
time: 66ms
memory: 84972kb

input:

633837198 413495
-943062263 449347729 -641334927 533609256 18761518 924821832 -321610900 -288022450 728701124 -395591331 138061084 -184717795 -727674029 271968226 444471838 -668413512 -186609209 -925225239 747136677 -790312979 -678161187 495397896 -886180689 -22896648 -692747226 65114040 318596393 2...

output:

130802779

result:

ok single line: '130802779'

Test #54:

score: 0
Accepted
time: 34ms
memory: 79036kb

input:

694899551 187347
-551123981 -400958318 140808187 724800642 -309421417 -754681222 -255043945 253763197 399584777 970054719 643396685 -22627939 -697887441 -444085945 167154474 434063922 -514818397 976928333 -154868218 -79303765 247293919 446402862 956444682 -880487558 256788120 -458778683 841156668 -3...

output:

23594409

result:

ok single line: '23594409'

Test #55:

score: 0
Accepted
time: 64ms
memory: 84704kb

input:

439420127 357216
236401425 231759916 -55710207 285716914 336511913 354357412 -467285706 -799031284 146526619 -486768948 -178078554 -694023547 -273934331 -4398807 -495884578 186713893 -775460955 -456959460 -286308279 -617704557 175570409 166351146 -122671578 826525776 -861170894 -249392888 -901858493...

output:

308407540

result:

ok single line: '308407540'

Test #56:

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

input:

374782371 19160
795556936 46404210 -811223299 -288505277 393622185 -27569771 336090900 -863188127 816660659 -537764042 -246368093 -396689251 921321219 -939595242 -467217302 684468779 -849880596 228771169 219198853 344907159 188275373 383133972 185652317 -210890609 858341122 236242066 475048346 -8144...

output:

1004656

result:

ok single line: '1004656'

Test #57:

score: 0
Accepted
time: 80ms
memory: 83980kb

input:

275538816 438028
649256530 -601150811 -615000255 -417908689 -100073745 -510965291 -471237062 702314027 890807849 588968671 585621110 51794010 -798235534 664777187 -476707065 94761521 997928950 -44262562 938350979 765065270 93202011 796913861 -457667055 829534252 -354073069 -12878004 -910164267 -4740...

output:

92299369

result:

ok single line: '92299369'

Test #58:

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

input:

5 46
17 32 6 30 -65 -17 -100 66 -17 -80 93 -33 43 58 -40 -18 -84 88 -23 32 70 -17 -16 -29 11 -62 -73 46 25 80 71 -29 95 -13 12 -100 95 85 58 -37 -6 20 16 -7 28 -88

output:

187

result:

ok single line: '187'

Test #59:

score: 0
Accepted
time: 72ms
memory: 84088kb

input:

951964149 405592
-695846858 -130440154 -492424552 21343243 93646122 690058122 852583338 417162289 -290937436 -70173571 699853103 -766848641 881461887 -317748553 -726587200 578588884 659741349 938276333 -426140019 177222693 103585222 696876047 -266091913 838645426 630938734 756665861 -803182814 60524...

output:

151188294

result:

ok single line: '151188294'

Test #60:

score: 0
Accepted
time: 32ms
memory: 82388kb

input:

401282890 265928
-861430326 -568983959 -37092256 -124430673 599279270 -848590409 759896998 -674251677 647686817 -968021476 -25790090 -44088648 925244703 -503701106 -637114059 -60815607 595311372 -632130479 -258341495 -826485467 -297834259 537532873 -223431779 -132815996 -297156984 696914500 87996238...

output:

223895

result:

ok single line: '223895'

Test #61:

score: 0
Accepted
time: 44ms
memory: 82992kb

input:

399666669 283515
-136209765 -30089316 -331549658 426776353 375328210 137633674 747510575 218800792 -804800440 -311430443 -761926920 -432523140 -765553134 -507481318 -280951291 -703435990 -458824552 -609792677 -110247392 -300079504 -180538835 -587405531 -610972253 -906273038 -697330816 -982477496 743...

output:

236651

result:

ok single line: '236651'

Test #62:

score: 0
Accepted
time: 38ms
memory: 83912kb

input:

418109230 242976
-842567253 -578281880 913725575 929557274 -668528192 954534446 300024158 -491872483 -981215830 -612928660 -833349177 -534313892 -371926120 -907672415 -707447189 -289754033 -865059478 564516240 -936516177 -857516356 656915145 -803025256 -143246066 396990325 133534550 -931295455 -1758...

output:

201278

result:

ok single line: '201278'

Test #63:

score: 0
Accepted
time: 29ms
memory: 79364kb

input:

527578604 185836
-293217844 357910328 -927027580 -667276641 -201994507 269874972 -151263701 -625266653 -146903348 974476227 -579196350 -777415283 549031769 -741873759 122865207 -941542022 514241311 390180640 -96339581 -21705952 -575553196 -797109595 -551063439 -616062516 -619204805 -206774718 -97628...

output:

155752

result:

ok single line: '155752'

Test #64:

score: 0
Accepted
time: 72ms
memory: 86624kb

input:

619951619 494522
589442376 -791107350 -535012159 -27513714 -645835714 -961786141 -441215303 -745468746 904709486 -915708561 -528370439 -271340905 -532886014 -365825831 876836826 186265547 -283941082 -458424058 -795945580 -268234493 971954980 -191837431 -565692004 -19326205 -387344205 -323775876 -557...

output:

411135

result:

ok single line: '411135'

Test #65:

score: 0
Accepted
time: 43ms
memory: 85340kb

input:

636423476 330511
-26816286 -247916662 -322387172 -96856536 -544668236 -877816734 -204751327 -785332158 -418304825 -116924360 -14164283 -429169057 -615172562 -128285249 -80273372 -197717604 -688192131 -239518930 -743686426 -298433066 -746102007 -355711685 -225587867 -803271095 -621557785 -924104907 -...

output:

8

result:

ok single line: '8'

Test #66:

score: 0
Accepted
time: 47ms
memory: 87900kb

input:

97946210 457678
-669932605 -708731990 -100745612 -88389790 -413880699 -337967474 -816457121 -567801512 -89470763 -12034061 -96835860 -514107672 -415714308 -354532522 -251493955 -305495798 -521045968 -951179644 -706687778 -733470944 -458332338 -80519112 -29086760 -220497462 -627926104 -907910495 -243...

output:

4

result:

ok single line: '4'

Test #67:

score: 0
Accepted
time: 36ms
memory: 86688kb

input:

886580291 299645
-234135288 -662457694 -447650008 -915689006 -820131075 -896590227 -420063578 -442060209 -984489625 -255934660 -557984711 -280804165 -537156940 -910350445 -926596125 -82146927 -94190886 -565844062 -643077032 -460344420 -356981145 -770516119 -828743967 -486272499 -18636997 -943713511 ...

output:

8

result:

ok single line: '8'

Test #68:

score: 0
Accepted
time: 4ms
memory: 78808kb

input:

-10 4
-5 0 -4 -6

output:

1

result:

ok single line: '1'

Test #69:

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

input:

93 7
27 24 -54 28 91 -99 -27

output:

22

result:

ok single line: '22'

Test #70:

score: 0
Accepted
time: 4ms
memory: 79304kb

input:

-7 4
-6 -8 10 0

output:

3

result:

ok single line: '3'

Test #71:

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

input:

-1 48
-8 6 3 -5 8 8 -5 -1 4 10 -5 7 1 3 -9 -10 -9 7 -7 1 -10 -7 9 10 4 9 0 -9 3 -5 5 8 9 -9 0 9 -10 5 -1 4 -8 1 -2 3 -8 -6 -3 -10

output:

195

result:

ok single line: '195'

Test #72:

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

input:

-9 1
6

output:

0

result:

ok single line: '0'

Test #73:

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

input:

-10 49
-2 10 0 10 -7 2 10 9 -1 -8 10 7 -8 3 -8 -5 5 -8 -6 3 1 9 -5 8 -8 -5 7 -6 6 -8 5 1 7 -9 -7 10 6 6 8 -2 -3 0 0 5 9 -6 -5 -9 -3

output:

335

result:

ok single line: '335'

Test #74:

score: 0
Accepted
time: 4ms
memory: 79912kb

input:

-90 3
36 -93 12

output:

2

result:

ok single line: '2'

Test #75:

score: 0
Accepted
time: 3ms
memory: 79872kb

input:

-91 12
-41 17 -62 31 -54 89 37 75 -51 7 52 -41

output:

25

result:

ok single line: '25'

Test #76:

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

input:

-94 29
-3 -90 -82 -2 -57 -67 -74 66 46 -51 -71 93 -72 49 -5 58 -4 -70 -32 9 77 18 -9 29 -22 68 94 99 -6

output:

71

result:

ok single line: '71'

Test #77:

score: 0
Accepted
time: 4ms
memory: 80664kb

input:

-40 47
-61 47 -10 -77 -26 10 34 -5 -56 82 45 -5 50 -7 -28 -53 28 95 -68 -49 -22 13 -99 -23 -15 91 -20 21 -24 94 -12 -14 -44 -48 -18 31 79 56 -76 -25 14 93 -44 -87 8 -68 -51

output:

92

result:

ok single line: '92'

Test #78:

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

input:

-23 49
-98 -4 39 11 -23 63 -100 84 58 -10 9 90 -91 92 89 92 -11 -59 87 -48 84 31 96 24 32 -38 81 64 -74 -31 94 9 -19 54 -8 -26 -80 -11 -2 23 -43 -69 73 -36 -97 64 83 -82 14

output:

409

result:

ok single line: '409'

Test #79:

score: 0
Accepted
time: 386ms
memory: 117164kb

input:

-7 278682
7 5 8 1 6 2 5 4 3 9 1 4 7 10 5 2 -4 0 -10 7 8 0 8 6 3 10 9 8 0 7 -6 -5 7 5 5 2 0 0 -2 2 -9 -8 2 7 -6 3 -7 10 2 10 0 1 -8 2 -1 -10 5 5 5 4 7 2 -5 7 -6 -2 1 -9 9 2 -4 9 -5 7 2 -2 -10 2 2 10 5 2 7 0 -5 8 0 3 4 9 1 7 10 10 -6 10 2 9 0 -10 1 7 -3 7 1 0 -8 6 6 0 5 -2 6 2 4 2 -2 4 0 1 -1 -8 7 4 2...

output:

21933331062

result:

ok single line: '21933331062'

Test #80:

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

input:

64 25
-17 18 -47 -33 16 -86 -69 -22 -7 75 28 14 -70 50 -7 84 99 39 77 -99 51 -10 -99 96 59

output:

89

result:

ok single line: '89'

Test #81:

score: 0
Accepted
time: 98ms
memory: 86064kb

input:

-8 74955
5 2 6 4 5 8 4 1 -7 -5 -7 -2 6 -4 10 5 -1 8 3 5 5 9 7 5 0 -4 8 5 -1 2 -8 1 3 3 4 -4 9 -8 -2 0 2 8 6 0 5 0 -8 -10 9 -5 10 9 2 9 0 -6 1 5 5 8 5 0 -10 2 0 6 9 -8 4 3 4 6 3 2 -10 2 3 6 -6 6 8 0 1 3 5 0 8 0 6 7 7 0 -9 3 -3 0 3 3 8 9 -4 9 9 3 10 6 0 -10 -8 10 -2 1 -7 9 1 4 8 5 -6 8 -6 2 5 9 2 -5 5...

output:

1581453654

result:

ok single line: '1581453654'

Test #82:

score: 0
Accepted
time: 140ms
memory: 88616kb

input:

-6 113143
4 -1 3 9 0 2 0 2 9 3 5 9 -3 -9 6 8 0 0 5 7 -5 -2 1 -6 4 -8 -1 6 10 -9 5 -6 4 7 8 -9 2 3 1 9 5 2 -4 -10 -4 1 7 9 10 -3 10 4 1 9 8 8 1 1 5 5 -2 7 6 -8 -8 10 9 3 1 7 0 -6 1 8 10 1 8 -10 7 8 10 -8 8 3 -10 5 4 2 3 1 -8 3 7 0 2 6 8 9 10 4 8 1 0 8 10 -9 -8 4 -3 9 9 8 8 -9 9 9 2 0 4 7 5 -9 4 0 7 2...

output:

3562202465

result:

ok single line: '3562202465'

Test #83:

score: 0
Accepted
time: 547ms
memory: 120564kb

input:

-1 402649
8 2 4 1 -5 -3 -10 -2 6 3 -8 -9 -3 0 8 10 7 8 2 0 0 0 1 -10 0 -1 9 1 0 3 8 3 7 0 1 7 2 10 4 10 5 6 10 -9 2 9 -1 -9 6 3 -7 7 6 2 -9 -2 6 2 5 6 10 -10 4 0 4 6 4 -5 7 3 -1 -3 5 10 8 9 2 7 1 8 -1 8 2 3 10 3 8 9 5 7 -1 1 6 0 -10 7 1 8 6 7 1 3 -4 3 5 0 6 -4 5 6 4 7 7 -7 5 5 -6 2 0 5 5 8 5 1 4 9 1...

output:

45705613203

result:

ok single line: '45705613203'

Test #84:

score: 0
Accepted
time: 16ms
memory: 82476kb

input:

-9 5753
4 10 3 9 10 1 9 10 4 -2 -6 2 0 8 1 4 4 5 -10 8 10 -2 0 10 0 10 -6 3 6 8 10 7 -7 3 1 1 10 0 -8 -10 4 7 3 9 -9 5 7 6 -10 5 5 -7 4 6 3 6 2 0 -1 0 5 2 -10 9 -10 2 10 3 -4 -7 5 4 8 10 3 2 0 0 -9 3 -1 6 10 -7 4 8 -10 5 8 5 10 9 -8 -5 -6 2 6 10 -7 5 -7 4 6 1 0 -2 6 9 7 -5 0 0 2 -9 9 1 9 1 9 0 8 7 8...

output:

9224845

result:

ok single line: '9224845'

Test #85:

score: 0
Accepted
time: 231ms
memory: 102788kb

input:

-2 172973
8 9 -4 -9 10 -5 -5 -1 5 10 6 9 8 -6 0 -5 3 0 3 2 4 0 -3 -5 9 -4 5 9 -10 -2 5 4 3 8 -1 4 6 -10 -5 -4 0 4 10 -6 4 -9 0 -8 10 5 2 0 0 0 -2 9 0 8 -3 3 -5 6 5 -7 4 -5 2 7 1 6 2 -3 9 -4 -8 9 0 0 -8 -8 9 0 10 2 -9 5 -1 -10 -2 -4 -9 -9 4 -9 4 -10 -3 -10 -10 -6 -3 9 -5 4 -6 6 5 1 -4 8 3 -1 -2 -5 10...

output:

80989352

result:

ok single line: '80989352'

Test #86:

score: 0
Accepted
time: 778ms
memory: 121392kb

input:

-10 483652
4 -6 -6 -1 8 0 -9 7 -1 5 3 -6 -5 -9 -8 5 -8 -8 -3 -1 0 5 -6 10 -6 -1 -7 0 0 -10 9 -2 5 6 5 4 -10 7 -10 0 10 -4 10 0 -10 7 9 5 6 -7 -1 -8 6 9 5 9 -5 -6 0 4 10 6 4 6 -8 -10 0 1 8 0 8 -2 -2 -2 -6 0 5 0 -8 4 -3 -5 1 3 0 0 -1 9 8 0 -3 0 -6 4 -9 -8 10 4 5 -2 3 2 8 -9 -9 -8 7 -10 10 5 -10 3 4 2 ...

output:

182564733

result:

ok single line: '182564733'

Test #87:

score: 0
Accepted
time: 705ms
memory: 121812kb

input:

-4 475441
-10 0 0 4 -3 7 -5 4 0 9 -9 -10 5 -9 -6 6 10 6 -10 -10 0 -2 5 4 -2 9 7 1 -3 0 -8 2 2 -2 -6 3 -10 2 3 -2 -1 2 9 -3 -9 -1 -7 2 -9 4 5 7 1 -9 2 2 -4 -8 2 -7 1 7 6 4 -5 0 -6 5 10 6 -1 2 -8 6 -8 3 6 8 -4 4 -7 8 -2 10 5 8 -7 -8 0 -4 -8 -7 -2 -1 -8 1 -9 -5 4 -5 -9 -2 9 -2 0 2 8 -2 3 -7 -2 9 2 -3 5...

output:

530235587

result:

ok single line: '530235587'

Test #88:

score: 0
Accepted
time: 251ms
memory: 102844kb

input:

-3 176556
-9 5 -2 0 7 -7 -2 -6 -6 9 2 -8 8 -2 -3 4 -1 -7 -2 4 -1 -10 -7 0 -3 0 0 7 -10 -8 -3 0 -5 0 1 -6 3 1 -9 4 2 -5 -7 0 0 -1 -10 -2 -2 3 2 6 5 -1 5 -6 -4 -2 -6 0 -6 -1 -4 -4 8 -5 1 3 0 -10 0 0 5 -10 5 7 -10 9 -1 -10 7 1 -8 7 8 -9 -1 9 2 -4 6 9 5 10 -7 4 -9 -7 7 -7 -6 -2 -8 6 0 5 -6 6 -7 5 -1 0 0...

output:

67938506

result:

ok single line: '67938506'

Test #89:

score: 0
Accepted
time: 490ms
memory: 120084kb

input:

-10 318952
5 -5 -10 -8 -9 10 8 4 -4 -3 4 10 0 2 -3 -9 0 -10 0 4 -6 10 5 9 -5 -8 9 4 7 2 1 -10 0 -9 -8 4 10 -8 -9 9 -5 -2 3 -1 -9 1 2 -9 -5 -7 1 7 -3 3 -8 3 0 -6 0 -2 5 10 10 -5 9 3 1 -1 -5 5 -3 -8 -1 10 9 -8 0 -3 9 -6 0 8 4 -10 -10 -4 -1 -10 8 2 0 -3 2 4 10 0 0 -9 -9 -10 5 6 4 -3 -6 0 -7 -6 -9 0 5 9...

output:

146319736

result:

ok single line: '146319736'

Test #90:

score: 0
Accepted
time: 769ms
memory: 121640kb

input:

-6 495664
-5 -8 -7 0 -6 1 3 9 -7 -4 -7 6 9 -2 0 1 9 4 -8 -8 -2 1 5 9 -7 -10 5 3 0 6 4 -6 3 -4 0 -2 9 6 0 6 10 2 7 -6 8 -7 1 -3 9 -5 7 10 1 7 1 -6 -9 8 0 -2 2 -2 -10 10 -3 -3 9 -5 -2 -8 5 1 7 3 7 5 -9 0 4 3 -8 -6 5 8 2 1 0 0 0 1 -2 8 1 -3 -5 -4 5 -10 9 -8 -7 -8 -7 1 5 -2 -8 -6 -7 7 -6 10 -5 7 -7 -6 7...

output:

142842029

result:

ok single line: '142842029'

Test #91:

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

input:

80 29
27 -15 39 48 4 82 -39 -77 -85 75 48 88 -53 -44 -61 -21 -32 89 -69 -94 17 90 -43 -84 89 -17 70 -69 -78

output:

89

result:

ok single line: '89'

Test #92:

score: 0
Accepted
time: 248ms
memory: 103008kb

input:

-3 188171
-2 4 -7 -4 7 -5 3 3 -2 2 -4 2 -6 2 4 -6 -4 -3 -6 -8 0 0 -6 4 8 -1 8 -7 1 0 8 1 6 4 -7 10 -8 6 -9 1 3 -2 -9 6 10 -3 -4 5 -3 7 0 0 0 0 -8 0 3 5 -7 4 3 -7 -6 1 -9 -5 5 -8 10 0 6 -2 5 3 1 5 5 2 3 2 -10 1 8 7 -8 7 4 -2 7 7 -6 8 7 -5 -10 7 -10 7 -9 10 -1 10 3 5 1 0 7 0 3 -6 -5 2 -6 -9 10 4 9 -3 ...

output:

28626740

result:

ok single line: '28626740'

Test #93:

score: 0
Accepted
time: 316ms
memory: 104736kb

input:

-8 208895
-8 -10 4 2 3 8 -9 0 -3 -5 8 4 -6 0 1 -7 1 -6 6 -6 -3 4 10 -7 -5 -5 -6 4 -2 6 8 -3 2 6 9 10 0 -9 1 1 -6 0 -2 1 2 -10 0 8 5 1 3 -9 5 8 -4 10 -4 9 9 -4 -10 -10 -7 -1 5 -4 4 -5 -1 0 -8 -2 1 -2 -1 7 -6 -5 3 2 -6 3 -4 3 -8 -5 -2 -10 -10 -5 -9 0 -5 1 -6 3 2 9 0 6 2 -2 3 10 0 0 8 10 7 3 -8 -10 3 9...

output:

81758176

result:

ok single line: '81758176'

Test #94:

score: 0
Accepted
time: 285ms
memory: 100680kb

input:

-9 194221
8 5 0 3 -5 7 1 0 -5 -9 -9 -9 0 -10 -6 3 -6 6 6 -3 9 -8 6 6 -6 7 -2 7 8 4 2 0 3 4 -2 -7 -6 -3 -2 5 7 -9 2 0 -3 9 0 -6 0 5 8 -6 -1 1 10 -3 7 4 4 4 10 -3 -9 7 1 -5 5 -3 7 -9 -8 5 3 -10 9 -4 -3 -5 9 2 -4 -6 -6 -9 10 0 0 9 9 -7 3 -4 -7 -7 -7 -5 -10 9 10 2 -8 -9 -8 -8 7 -10 5 0 7 -7 -2 9 4 7 1 8...

output:

166614684

result:

ok single line: '166614684'

Test #95:

score: 0
Accepted
time: 172ms
memory: 89092kb

input:

-5 124411
-4 3 -6 -10 8 2 3 -3 0 -10 8 -4 -7 3 3 5 6 1 10 1 4 -1 1 -4 -9 4 -10 2 4 -9 -2 5 -5 -7 -9 10 1 9 -5 -6 -9 7 5 3 -8 -10 -5 10 -6 3 -9 5 -5 -9 -3 -5 -7 -5 5 6 10 9 10 0 5 7 4 -6 5 -10 10 8 -7 -2 -6 -6 -4 -1 -10 -10 -10 -2 8 -1 -3 1 2 -2 2 0 10 2 -3 -5 -2 -5 3 4 4 -1 1 -4 2 -1 7 0 5 -5 -4 7 8...

output:

42632015

result:

ok single line: '42632015'

Test #96:

score: 0
Accepted
time: 196ms
memory: 103528kb

input:

-3 194200
-8 -2 5 -4 -6 -9 -3 0 -8 -8 -5 -2 5 -9 0 -6 -4 -7 -3 -7 -8 0 -9 3 -3 -5 -10 0 -4 5 1 -8 9 -3 -10 -3 -5 0 -7 -6 -4 -6 5 0 8 -7 -1 -9 -1 -2 0 -8 -3 -7 -8 -2 1 1 -9 6 -9 -2 -1 -7 -8 -6 -1 -3 -3 -7 0 3 -4 -3 -4 -7 -3 -9 -6 -1 5 0 -8 -6 0 -7 0 -6 -6 -6 0 -9 -7 -2 -2 -6 8 8 -2 -5 5 0 0 -9 -5 -6 ...

output:

205113

result:

ok single line: '205113'

Test #97:

score: 0
Accepted
time: 71ms
memory: 91744kb

input:

-9 77321
-1 -5 9 -7 -5 0 3 -9 -10 8 -4 -7 -8 -8 -6 -7 -7 -2 0 -4 -9 -9 1 -4 -4 -5 -9 -4 -8 -2 -9 10 -6 -4 -6 -2 -6 -4 -3 1 -3 -1 -9 -9 8 6 8 0 3 8 -4 -9 3 -3 0 1 -1 -3 6 -2 0 -1 -2 -5 -6 -6 -9 -9 -2 1 -1 -7 -5 0 -2 -3 3 8 6 -7 -8 -4 -6 -4 -1 -2 -3 -9 -4 -7 5 3 -1 -4 -3 0 -6 -8 -3 -2 -3 0 -10 -10 -8 ...

output:

82304

result:

ok single line: '82304'

Test #98:

score: 0
Accepted
time: 211ms
memory: 96412kb

input:

-3 145748
6 8 -7 0 -8 -2 2 -8 -9 -8 -8 -1 1 -6 -5 -9 -9 1 -3 -9 -9 0 -9 -8 0 -10 0 -2 0 -9 -2 -6 -9 4 -9 -3 -1 -4 -7 -10 -9 -8 -2 6 0 -2 0 2 -4 0 0 -6 7 7 -6 -8 -2 -2 -4 10 -7 -8 -8 -4 -7 9 -8 -6 -1 -10 -2 -3 -7 0 -1 -6 -2 -2 9 -1 5 3 -9 -3 0 -9 -1 -5 -5 -8 -2 -6 -1 -2 -1 -10 -5 -6 -8 -10 -4 -4 -3 -...

output:

153457

result:

ok single line: '153457'

Test #99:

score: 0
Accepted
time: 228ms
memory: 103844kb

input:

-8 214512
0 -10 -3 -2 -6 -7 -1 -5 -9 8 -5 -6 -5 -3 1 -5 -1 -2 -4 -2 -9 -7 -1 -8 -3 8 -8 -4 -10 -1 0 0 -5 -5 -4 0 0 2 -1 3 0 -3 -3 -10 -6 -1 -2 -9 -6 -7 -7 -10 -6 -10 5 -8 -5 -3 -5 0 -3 10 3 -2 -10 -2 -1 -1 -7 -9 -2 -9 -3 0 0 0 2 9 2 -2 -2 7 -1 -5 0 -5 -3 0 -10 7 0 -5 -7 -1 1 7 6 5 -1 -1 9 -9 4 -3 -7...

output:

224851

result:

ok single line: '224851'

Test #100:

score: 0
Accepted
time: 208ms
memory: 103504kb

input:

-8 196201
-9 0 -1 0 0 -1 -1 -9 0 -10 3 4 -6 -3 2 -9 -3 -7 -8 -3 0 -10 -1 -9 -9 -4 -7 -6 -7 -5 -1 2 -8 2 0 -3 -1 -9 0 -9 -6 -8 -5 -9 -4 -8 -4 -1 -8 -1 -9 3 -6 -9 -3 10 0 -6 -10 -9 -6 -4 9 7 -10 -4 -9 -7 -2 0 -8 0 -5 -3 -4 -8 -10 -6 -5 6 6 -1 -9 -2 0 8 7 -9 -3 -9 7 -1 -1 -1 -2 -2 -3 -1 -6 -10 7 8 7 -1...

output:

208176

result:

ok single line: '208176'

Test #101:

score: 0
Accepted
time: 307ms
memory: 104804kb

input:

-6 216586
73 28 -57 -5 -72 -48 60 0 -14 -7 2 -83 31 46 54 -13 90 -73 19 5 0 -32 22 60 -37 -15 28 40 -2 71 -47 95 -61 -79 -75 -72 -2 -1 -8 24 79 -6 82 58 21 74 -64 -91 -10 -33 -45 40 -11 96 -58 43 -84 -71 100 -38 52 98 -80 -22 22 -72 42 80 25 -70 -6 -83 -66 -1 -87 41 28 4 -42 0 -100 85 25 -77 -12 -31...

output:

124171806

result:

ok single line: '124171806'

Test #102:

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

input:

64 25
-44 24 66 65 -55 -73 -8 -36 -11 43 57 74 47 74 -9 84 -82 -31 93 67 -47 44 49 -24 64

output:

161

result:

ok single line: '161'

Test #103:

score: 0
Accepted
time: 24ms
memory: 82948kb

input:

-100 18928
-64 -64 52 -87 36 91 78 -12 60 48 -9 -78 59 -62 -48 65 53 19 -58 74 51 -50 0 -30 -85 54 28 74 13 -30 -88 40 33 -28 -97 63 -8 26 33 24 -92 -37 -27 55 -6 25 -91 38 -92 82 -79 -34 -54 39 57 34 -69 67 94 -21 -60 -1 -72 -56 -15 49 65 -48 -40 -89 -56 -41 63 -2 -89 42 -15 -62 -60 76 77 22 -40 88...

output:

786621

result:

ok single line: '786621'

Test #104:

score: 0
Accepted
time: 263ms
memory: 102584kb

input:

-19 185050
11 -69 62 -17 -89 -64 -19 -29 5 64 61 53 83 74 -39 -61 -68 2 20 70 -14 -72 85 -84 -77 73 -14 -21 -7 -99 -93 44 4 -45 -50 73 -76 -75 -33 21 58 -27 64 -20 75 -20 26 -67 96 -59 -41 -84 -21 6 5 -8 49 60 77 20 -44 -78 -3 46 -97 -74 44 32 31 92 -64 -35 83 -67 -67 -69 68 61 -96 -92 39 48 56 0 41...

output:

61362226

result:

ok single line: '61362226'

Test #105:

score: 0
Accepted
time: 609ms
memory: 121676kb

input:

-36 382647
71 26 10 -32 -92 -27 82 -52 61 57 -24 87 13 49 -34 -49 -31 -62 -26 -7 6 89 70 -31 -29 -57 23 -23 -81 4 -42 -71 -23 -17 -42 43 50 0 -14 66 -72 -67 51 -33 88 54 -34 -89 46 -98 -1 -67 -85 16 22 -94 40 76 -10 32 -56 -69 49 -81 -98 1 19 28 40 13 -97 -92 72 40 -7 33 -22 50 -64 50 -89 -74 77 7 -...

output:

118179029

result:

ok single line: '118179029'

Test #106:

score: 0
Accepted
time: 502ms
memory: 114768kb

input:

-88 314141
2 -88 -36 35 97 -61 5 -1 73 -87 45 49 0 16 -51 -48 -97 21 -32 40 81 27 58 -21 -32 -71 -57 12 -76 -74 97 -4 4 41 42 65 44 -83 -30 -39 33 35 72 -62 -80 -15 -20 -84 -44 -37 38 86 76 -49 -61 8 36 -28 -69 73 -29 -100 76 -11 37 -34 19 86 -81 -35 91 -56 -69 41 -52 -56 -68 -100 -49 -31 -68 -99 -8...

output:

231230653

result:

ok single line: '231230653'

Test #107:

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

input:

-54 18413
12 47 97 47 23 -79 79 -20 62 15 31 -86 -36 -70 -99 -30 -3 56 57 -75 25 38 -52 17 27 -71 64 68 -28 78 41 49 94 28 -10 -59 86 -64 92 -73 -77 77 -69 93 -61 50 76 47 -5 82 64 0 -52 56 -40 -42 -59 86 -62 -36 -57 90 94 0 36 51 35 -63 22 -84 2 -52 -42 18 -8 -83 3 -59 81 72 -27 36 -54 -22 57 64 -3...

output:

1331924

result:

ok single line: '1331924'

Test #108:

score: 0
Accepted
time: 605ms
memory: 120104kb

input:

-70 373027
-94 -53 25 -85 -2 97 -47 13 55 28 -4 22 57 42 54 16 68 -82 38 -36 -59 23 -85 -42 -16 12 -10 44 48 4 93 -100 82 -52 -19 -82 39 40 93 -59 87 9 93 -50 25 85 98 -98 74 -53 35 -51 -24 -29 83 -53 -73 -85 -45 -32 76 -61 49 70 0 -3 -1 -92 -80 -16 -33 -43 31 72 30 34 59 87 -76 -58 24 -3 -47 81 -65...

output:

262152407

result:

ok single line: '262152407'

Test #109:

score: 0
Accepted
time: 573ms
memory: 121664kb

input:

-28 367945
33 30 20 -47 5 -4 -12 52 -86 100 -78 31 22 -52 -48 99 -42 -68 15 -68 -71 -5 -8 -54 -69 92 25 75 51 83 -42 37 7 24 -38 -100 18 -67 86 -99 -76 -56 -6 -20 11 87 81 54 50 2 -6 8 67 46 -94 -1 -37 -30 -22 38 -94 -75 -25 -96 -29 96 -32 69 -7 -46 -87 47 -69 -88 0 89 -15 -58 63 34 -37 -45 90 75 -7...

output:

154892292

result:

ok single line: '154892292'

Test #110:

score: 0
Accepted
time: 261ms
memory: 100604kb

input:

-35 175582
-37 76 13 23 12 2 96 -54 13 -11 -2 -9 -67 -69 -29 46 44 -42 -53 51 12 -51 -90 -25 -29 -59 -63 22 -42 -100 19 -60 27 -44 7 83 -29 38 99 22 28 67 -30 60 -43 68 43 49 22 -4 -97 -12 74 8 44 -71 -44 -57 -78 -63 -17 -12 -99 22 -93 -94 -43 -79 -36 70 -78 -84 87 -74 -50 100 54 5 -36 20 34 -95 -94...

output:

86124628

result:

ok single line: '86124628'

Test #111:

score: 0
Accepted
time: 754ms
memory: 121360kb

input:

-12 482871
-8 -66 1 -96 84 33 -81 -28 -8 -35 9 -38 -77 -89 78 49 41 -73 4 -51 -21 52 31 -27 -60 53 -13 51 -73 18 91 90 51 11 98 60 -46 -28 84 -18 88 -52 72 -75 -44 -58 -33 -64 48 -42 49 30 54 -85 7 -87 -97 -17 35 77 12 -35 -14 -5 -77 28 54 0 -81 47 28 -60 -32 -72 0 19 -81 -67 -51 -36 -97 -100 -55 59...

output:

265904923

result:

ok single line: '265904923'

Test #112:

score: 0
Accepted
time: 547ms
memory: 120560kb

input:

-896347478 425040
568697547 672930085 902464621 263732686 935538778 109457608 504015096 88163335 126210373 842124355 774885788 21598056 683481623 23956371 451796624 369815811 823142415 377273459 346978507 265781683 457142978 52039178 355260500 656945042 602872046 460280434 391507157 950754705 922224...

output:

90329713320

result:

ok single line: '90329713320'

Test #113:

score: 0
Accepted
time: 46ms
memory: 82760kb

input:

86 287802
-27 -60 8 -59 36 6 32 45 -30 -83 29 -86 -15 52 10 -92 -98 66 65 -76 67 -81 62 14 80 -40 44 25 -52 -31 -56 -20 -8 -3 31 84 20 21 -79 9 -44 -29 -16 -87 16 30 84 57 12 19 -40 28 95 71 17 -95 -89 10 20 95 -95 22 69 56 93 -94 -88 -36 52 -15 54 45 -3 -18 -26 -70 43 43 -43 88 66 -48 41 39 -93 -59...

output:

149917718

result:

ok single line: '149917718'

Test #114:

score: 0
Accepted
time: 80ms
memory: 86092kb

input:

-447309271 67853
385075790 780490768 742657834 110727201 61812514 4887394 385205440 168114743 385882666 372509215 478041267 370620450 166489186 771801958 669722971 829322391 736083727 749049301 527561083 897685047 682318219 25656085 587549160 285112491 917740350 251692 375117035 331820707 976996588 ...

output:

2302048731

result:

ok single line: '2302048731'

Test #115:

score: 0
Accepted
time: 562ms
memory: 121524kb

input:

-56621969 461287
60244167 999090436 952421002 641149553 429633953 578894534 432993436 641222549 934597458 376082199 19437911 868965145 878473496 491083965 186796150 223306384 81390545 100317156 378572316 108884143 699744889 723887143 596453323 990717588 453852191 359580048 458645545 966963761 242503...

output:

106393078828

result:

ok single line: '106393078828'

Test #116:

score: 0
Accepted
time: 353ms
memory: 117676kb

input:

-118049259 273059
960390701 75935415 819707988 435292490 397645342 28130007 433829025 436756357 832212380 435993283 304444692 802199204 653024028 291451914 510182784 461985154 748683310 405400467 375670564 881176649 417520402 91635135 490653157 60975113 948126511 397208178 992849540 292287048 760688...

output:

37280745270

result:

ok single line: '37280745270'

Test #117:

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

input:

-428092051 13955
276716340 993248640 865268571 714604752 257820788 686624601 345575548 446208359 566447408 334676785 665168215 402651863 938902456 913980820 794193351 786514026 140783425 256964225 719199691 961752349 718452190 817805186 922690730 405619783 336792019 579002 561350021 644874073 735743...

output:

97377990

result:

ok single line: '97377990'

Test #118:

score: 0
Accepted
time: 307ms
memory: 105344kb

input:

-586230165 236230
623852193 -536844613 -266371879 947481201 537482298 832224518 969038895 682935379 636990813 686907735 531201935 83701754 101822339 -598931902 -548000787 489513800 229657554 386359745 596539884 909849818 328356706 363813970 886752189 907893082 59438387 800594708 500078913 901976704 ...

output:

22977301710

result:

ok single line: '22977301710'

Test #119:

score: 0
Accepted
time: 184ms
memory: 101812kb

input:

-769948213 149056
72683253 273282575 205826460 -822208936 131150630 495123756 482683996 -159778951 775058789 123309535 717466712 388983672 739629150 592092481 509566822 431218356 68853731 984003772 830121039 -328440892 487108714 772927928 378590165 104897819 249713369 973390666 790863738 15600666 40...

output:

9166072586

result:

ok single line: '9166072586'

Test #120:

score: 0
Accepted
time: 216ms
memory: 100352kb

input:

-438202009 166077
400804941 365160879 86376578 -801143520 897440958 -561582188 632377850 498293404 241491564 343151356 730104173 -782771123 263030230 445955014 910496310 229788877 891636586 624493062 847201398 889069335 529152397 558046668 828353975 372553254 929313729 987576410 629292330 485576176 ...

output:

11345926004

result:

ok single line: '11345926004'

Test #121:

score: 0
Accepted
time: 642ms
memory: 121148kb

input:

-512020934 474008
796878360 78350807 570466377 314792936 589663527 6957914 421510125 492902726 839653916 848037523 503973084 811267743 943112613 224031657 834935024 770122849 804241914 575078098 254205823 925574020 848828276 293813908 725753150 -465430379 846479318 984704675 869271470 232276463 7116...

output:

92532902790

result:

ok single line: '92532902790'

Test #122:

score: 0
Accepted
time: 553ms
memory: 118284kb

input:

-968989569 405865
543469159 345150820 251749783 -988256820 182575498 460416592 -682182621 851690646 492945171 513458544 995225041 365238951 -826770332 842943114 981861308 699849892 746775773 675020370 71601675 730287502 313436158 8013222 428626774 120036342 -869801527 791723852 418176012 102323870 1...

output:

67891132564

result:

ok single line: '67891132564'

Test #123:

score: 0
Accepted
time: 88ms
memory: 85856kb

input:

-438462007 68944
337327037 150044584 -104225900 949304040 264908110 719917852 750186264 240049612 803749265 544290096 993664069 265420645 377724224 127557413 418220346 909550017 189679325 535773717 925966099 333967359 873148623 883229499 414160015 636482590 -235201861 215129904 112598990 593604457 1...

output:

1954467889

result:

ok single line: '1954467889'

Test #124:

score: 0
Accepted
time: 64ms
memory: 84632kb

input:

52 465121
22 -37 -73 90 0 -83 -46 -91 -5 -92 -91 -35 -39 44 12 -55 -40 7 -94 15 100 -69 -89 -8 -35 29 -38 -73 -77 -71 -13 -51 -1 -41 69 40 -27 1 55 -68 -83 7 99 -23 -95 -85 -96 -36 -20 60 50 86 -3 25 88 -92 37 17 73 -71 62 80 68 4 69 3 -12 6 50 -93 100 -54 -47 31 21 -23 74 -30 -31 -16 37 -82 40 46 -...

output:

160959768

result:

ok single line: '160959768'

Test #125:

score: 0
Accepted
time: 286ms
memory: 105068kb

input:

-155710720 220328
306684018 752355260 658335035 301950635 505094896 -772641125 421847501 75645944 506738572 779786018 879701747 555814510 130743591 986176983 -9207776 -225371481 -410152279 577179663 832710336 203938020 504576754 447719807 198507098 221792016 -930588734 3354655 351966424 -100051463 4...

output:

13203447161

result:

ok single line: '13203447161'

Test #126:

score: 0
Accepted
time: 282ms
memory: 105016kb

input:

-113194309 217714
-281897903 -74009113 209886108 -815284975 -702042834 -528881371 140447637 553527746 475340820 -28952848 -275758966 -180236305 537691931 150094687 -202997464 22577841 531805958 -569409999 425799089 676385904 358545288 296153260 93973086 535146902 -608062663 569078980 263873205 15507...

output:

12906127561

result:

ok single line: '12906127561'

Test #127:

score: 0
Accepted
time: 69ms
memory: 88756kb

input:

-766916927 54951
-525884183 -582605959 972494332 89279129 749402257 428002646 329150968 -919959063 -519080830 424668590 679373367 -591285393 886221660 392818545 599374430 595622007 912619038 945531085 154925159 85101810 653771532 545516616 -588509722 620213330 662682271 -966354696 575131441 77547184...

output:

835318867

result:

ok single line: '835318867'

Test #128:

score: 0
Accepted
time: 577ms
memory: 120348kb

input:

-545215501 419593
640207760 -820428484 450715836 676982016 -605567967 839862913 -912505366 256287315 -540779429 -870015190 105899213 251771611 -824783278 791635895 -241666133 651459166 -966046403 -58926803 -519275784 659093189 43056688 646514581 281011104 -833544216 950778835 945501272 960421304 784...

output:

47834208724

result:

ok single line: '47834208724'

Test #129:

score: 0
Accepted
time: 577ms
memory: 120576kb

input:

-963166087 407080
-958010976 388522757 -644941510 -484221703 908106087 37246736 904897534 348434334 -535239447 -468311872 574988391 -219429749 239663152 858943527 377717040 770417645 254762317 488672728 29898478 573212291 433298317 -441934195 -545794698 448407108 -696283275 246839555 -595718950 -658...

output:

44960501693

result:

ok single line: '44960501693'

Test #130:

score: 0
Accepted
time: 256ms
memory: 98500kb

input:

-268532720 198378
704415706 -400641637 140545094 901083004 922722823 357210453 545921526 364713532 320296030 512791777 639618189 757878368 50859330 406942451 475334729 850837209 961078423 30769749 858810251 920654234 399218130 -837364250 843535665 37064289 -264732820 757577761 56222985 524012789 753...

output:

10782203612

result:

ok single line: '10782203612'

Test #131:

score: 0
Accepted
time: 315ms
memory: 103160kb

input:

-129599543 242540
538765988 836681942 -362140742 429843249 397505555 93754733 68682636 63005314 635053533 441033757 817510685 26484490 751095806 791658244 -750118249 -955840857 68955179 964440990 -767173491 -67418076 598923909 195542820 433589615 153770485 642147214 279978263 139024018 298179237 848...

output:

15970363660

result:

ok single line: '15970363660'

Test #132:

score: 0
Accepted
time: 578ms
memory: 118648kb

input:

-744197901 414847
-349111777 -859751538 213724995 906615942 160809503 256725247 833434280 801590013 106859162 493967556 763518615 33228833 -725880803 327754374 333702794 81834122 -263356572 -156998005 18000014 -254490279 -563625526 695249487 -754726387 307868425 541705338 150257775 476135725 8263275...

output:

46707057246

result:

ok single line: '46707057246'

Test #133:

score: 0
Accepted
time: 177ms
memory: 95284kb

input:

-186830122 134661
-485615603 90395061 670243426 502014715 505828588 -119112080 928812839 24808114 12767870 -907499661 219285962 230352302 194362619 29725466 109872056 186630205 826718393 -183459090 607287222 932342561 28255843 776850100 187272777 -19209894 748661854 -762732857 -105347688 712028441 -...

output:

4931553458

result:

ok single line: '4931553458'

Test #134:

score: 0
Accepted
time: 388ms
memory: 117836kb

input:

-140550222 286473
-347635008 27229038 715484436 672032603 682955855 413508959 -914147914 418703035 -681563566 719721185 -26993696 477776434 718178310 985253968 666848742 585735394 -782773067 78731158 545612704 928692355 881013038 292515786 412802633 198069492 372771287 419591239 -912324773 834810088...

output:

22415446441

result:

ok single line: '22415446441'