QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#375324 | #2611. Trans | LoverInTime | AC ✓ | 96ms | 12024kb | C++17 | 950b | 2024-04-03 09:01:25 | 2024-04-03 09:01:27 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3824kb
input:
2 1 2 3 4
output:
0 6 7 5
result:
ok single line: '0 6 7 5 '
Test #2:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
7 421276968 556534097 242376406 797988732 916386008 743346571 485682224 181283616 648534130 408738432 13164142 479337725 417544593 265341309 522378219 959865261 313449301 356203183 925695909 855892005 782229072 872576608 533035513 48364761 625806259 318123417 193149234 9858275 930376785 308209667 13...
output:
0 33239903279 31395623254 29213192389 31293509443 32637325248 34037369389 31607037366 31166633833 29783232824 33511972881 32553367792 32190001462 32973216603 33526818358 31946623383 25754293648 30270980905 32067607344 31042581793 30615551371 32073963702 30848533343 29979375166 31804672235 2878419610...
result:
ok single line: '0 33239903279 31395623254 2921...273722 32590601475 34430387732 '
Test #3:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
1 327736790 323727980
output:
0 323727980
result:
ok single line: '0 323727980 '
Test #4:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
6 968584024 953824438 532407820 305480869 861285026 143533462 151578835 418314933 593448102 996939242 48780500 160040412 172314181 694375710 513340064 369006928 447123195 499347677 985928501 899241723 245578411 458046008 696421660 130238461 369777566 35799962 446946356 745112995 761345338 144468923 ...
output:
0 14688393395 14619539808 16613811027 14856138891 16964676550 14087999923 14605834198 15029761976 14202620067 16242084778 14909104185 13118217941 13701248020 13946223031 16700927474 16193493386 16320097325 11803047292 16641111579 15821731993 14569524592 13500895227 16044233094 15573987082 1371196390...
result:
ok single line: '0 14688393395 14619539808 1661...765031 15466662616 17300980323 '
Test #5:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
5 604043718 516195863 472999167 416065176 85069720 432623483 669673387 907355006 36607304 274153333 733085349 222277130 77313577 581755962 866914733 811997339 496887327 562542294 337311418 342134528 84311679 357752204 964960675 61595757 248018635 722999470 856759068 862186051 436995459 228011566 262...
output:
0 8037494854 9289432742 8604006238 7330448505 7130061341 6526651537 7678534191 7723192934 6878226702 6777950420 7747303678 7519428251 7875038237 6253076147 6099420551 7326584089 7613935819 8237885921 7817380405 8861541998 6451848586 6842311680 7404388606 6811600609 8420678369 7420479493 6058654911 6...
result:
ok single line: '0 8037494854 9289432742 860400...52446052 7866368452 8605513308 '
Test #6:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
4 710718943 834592794 438167633 371359786 248188753 31120297 435797869 917103791 980941668 531113443 565984905 341177187 256287968 732559572 341952326 282578920
output:
0 4041605790 3694122417 3911288839 3245589496 3360470126 2984846101 4074018207 4032595989 4299343535 4663331730 3600664336 4051427913 4452004267 3225422826 4834683724
result:
ok single line: '0 4041605790 3694122417 391128...52004267 3225422826 4834683724 '
Test #7:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
3 618020735 491308215 306968433 906184109 401737114 240607480 302306045 769171263
output:
0 2407271067 2284629850 1341190173 1713821902 2101535483 1855497136 1969185025
result:
ok single line: '0 2407271067 2284629850 134119...01535483 1855497136 1969185025 '
Test #8:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
2 737316583 570923604 753927537 838176098
output:
0 1409099702 1592103635 1324851141
result:
ok single line: '0 1409099702 1592103635 1324851141 '
Test #9:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
8 637208319 240525006 869604411 970830605 382844942 484871779 199922333 760271244 476757008 979816628 876292984 398746437 640357855 315453772 115414129 748805251 424117747 549999599 536292333 565422389 832407813 601928595 132938313 798039765 495451000 422200515 610622975 307162875 689610575 90138793...
output:
0 70243653459 68962363745 67588547160 68782240793 68125409458 69829132550 71603487083 70053495081 69892120988 72592513886 72942769961 68754566934 71161787639 71088868955 67734911580 68219184035 68625803884 69675661780 71387239201 65459948760 67711444867 70979363689 65889435944 69776946232 6628501822...
result:
ok single line: '0 70243653459 68962363745 6758...887449 71315726223 68668720816 '
Test #10:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
9 97392322 880625377 711670521 2558360 619021696 312770194 474912013 987466791 331332647 63820989 933646700 510314403 100183349 24315738 60683029 951210722 202355109 3714111 586212102 194646571 655828598 134361676 666861634 637891206 585317291 513442964 34866592 194511732 72135506 98645283 256982726...
output:
0 128346413627 125811934503 125239558782 125538521677 127936820810 123808638276 126560519585 127527020424 128473101807 125575802547 126573772894 123162345857 121653187790 120212920892 128477831161 123596155598 123062979965 126485342455 126892089070 120542830853 125983452342 126228618162 128260061711...
result:
ok single line: '0 128346413627 125811934503 12...6711 124986706451 130142817342 '
Test #11:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
10 615079608 583627307 617722793 694205070 196782671 273110584 635779592 733368431 899582580 682855242 968380038 78833378 623446440 188258082 263356059 394796290 805620126 286386201 441316049 612882875 708219529 631938556 635648786 370827363 466895157 886035282 747242692 479063567 893507235 16916129...
output:
0 262778632218 259260698817 256921276311 247393599396 254166793524 258513052801 264282077561 252350659374 261331173522 251858262111 259956198371 264333740444 253667583770 267305182617 257818232067 257027875713 253685163467 260579286728 262778669030 263023685695 254744980619 257916947714 262797263742...
result:
ok single line: '0 262778632218 259260698817 25...1564 257318521521 266777458355 '
Test #12:
score: 0
Accepted
time: 1ms
memory: 3780kb
input:
11 202423568 807262842 136834966 151799304 905259729 733399345 759061893 62644338 463432837 318749056 836608467 788283180 430688445 150334127 458637345 262477728 359831818 192741920 637417257 871488746 31649189 381877335 253933274 800280279 806294905 8510763 709617458 989912323 286443440 702494516 3...
output:
0 514272240513 513546110652 519542370149 499299892273 505724558826 501927741517 512936668882 508165981015 511522035648 501180864741 517043263190 521560225042 513312362087 510405606472 525395864369 523941620360 514680321113 505671704664 521901191109 501132439829 508749950382 515651965789 509105534086...
result:
ok single line: '0 514272240513 513546110652 51...1664 508987920695 507951167212 '
Test #13:
score: 0
Accepted
time: 1ms
memory: 3876kb
input:
12 203683759 853461693 427469261 172937765 9462139 519608649 527564377 585228668 902285662 421680745 245206045 784154215 858868204 813941695 315334876 969774642 393780770 957329387 90854343 838924161 829409409 606790296 267293813 217796704 187641249 295265745 911978095 912320322 852792060 941095959 ...
output:
0 1020176292683 1039037008769 1023339081888 1000690713582 1031641112639 1017660632505 1036890621122 1019279061139 1026977851244 1044430169590 1023449452407 1021732399459 1027245061598 1027510936320 1033310709807 1028109070878 1045598806765 1036781163733 1039490439356 1033327805966 1021844725431 1045...
result:
ok single line: '0 1020176292683 1039037008769 ...96 1030619377974 1026889122059 '
Test #14:
score: 0
Accepted
time: 1ms
memory: 3828kb
input:
13 741349480 372072909 607388375 292123724 39152343 229258974 422168377 656939108 577660590 29274385 729110502 328626965 278172994 841241846 820176713 92912174 650500421 84117581 913867078 584766854 58786257 304731198 39276750 567951112 341254798 523792540 281022411 612724422 415170676 111855050 702...
output:
0 2054203536417 2067691275186 2034942408441 2066883896957 2056956919128 2073682008983 2044942101420 2044310916955 2035362797752 2038436660481 2037236029788 2046044258434 2045329871565 2041127388008 2045480650293 2058956154179 2057178631874 2055712857079 2071110291664 2055737011042 2045937871379 2050...
result:
ok single line: '0 2054203536417 2067691275186 ...82 2048494189009 2073303502216 '
Test #15:
score: 0
Accepted
time: 2ms
memory: 3968kb
input:
14 862442730 517257992 718789355 850679322 84611891 276773043 621660141 809389713 947075362 406829731 881377816 133748216 772497789 625667552 916675707 751090548 644708055 108957171 831493417 299595540 252315995 809591976 122588747 676210777 944387284 784392654 958811653 975795314 368941843 70698064...
output:
0 4133838947339 4092968661241 4130011749622 4127413075424 4093027560731 4117999603513 4095146214426 4108281523887 4131050578148 4104709393464 4082893731611 4106120405227 4115808364264 4148489294916 4094526176435 4142984683081 4123022861270 4107963819566 4122537403921 4096923555751 4119864556496 4091...
result:
ok single line: '0 4133838947339 4092968661241 ...44 4109197155096 4124414260367 '
Test #16:
score: 0
Accepted
time: 0ms
memory: 4024kb
input:
15 26130435 960003690 334885984 605994862 627771203 863661801 346480735 729912922 667007467 718893164 581198329 211207412 697691891 445395633 458404949 136243807 713843941 395812134 626933703 456651553 285473751 889769610 666453120 976696990 242500287 182725685 64302095 810009339 778543911 133102346...
output:
0 8154478340747 8129390394422 8158343561841 8121625375273 8178524098592 8163960497091 8148921527670 8171194416520 8184024257271 8118519477488 8153422946843 8174284952833 8171934352440 8167757599089 8067137067248 8114558623463 8189544066276 8176351986699 8192830252848 8113887331286 8158877524915 8094...
result:
ok single line: '0 8154478340747 8129390394422 ...56 8180264203877 8136582206046 '
Test #17:
score: 0
Accepted
time: 3ms
memory: 4288kb
input:
16 858705051 768301162 406676035 179134120 757976104 665783501 885410716 230636394 396432706 908153344 480797571 978040 389822846 685019628 259302105 720197889 49939701 685132571 855916721 354565791 608443248 680899726 889029748 201852232 296910866 208610953 87392121 660151851 648090946 492870909 46...
output:
0 16375140028079 16401400910279 16286454004332 16331733376697 16257076812982 16279788565734 16272878584113 16277162225116 16275247179767 16276243144245 16315662188318 16279899833637 16250805201498 16321306525860 16251711207991 16300714998972 16329500073227 16300565928415 16327215219080 1631507815700...
result:
ok single line: '0 16375140028079 1640140091027... 16275246190365 16340667629782 '
Test #18:
score: 0
Accepted
time: 12ms
memory: 4860kb
input:
17 841095976 31482054 154766449 947912573 622822575 698163057 402895812 300008088 863170751 64207262 123931685 134667683 214955721 655699530 752925035 232449966 235882508 345461781 597413098 395792447 73869570 302535846 896699866 127692424 148108579 179350149 10341668 892800615 975383098 722762537 1...
output:
0 32793438486110 32831964803991 32701540752909 32676465210739 32684998880419 32828131701484 32708110385728 32782457595139 32705747760237 32649936833184 32637524202522 32703834219318 32744907404922 32839172779653 32767002884741 32759449141718 32643218125670 32740107667031 32681940123987 3269853433985...
result:
ok single line: '0 32793438486110 3283196480399... 32825855900403 32834942560175 '
Test #19:
score: 0
Accepted
time: 20ms
memory: 6904kb
input:
18 257330162 527681296 966044268 179391414 333400138 560891222 932789380 789922611 2756788 767089990 983261384 396145884 305404549 507479729 668172797 280316635 65375059 576748491 721866244 867873018 284939147 861766381 835033192 778738146 941566223 158971632 166076770 584330204 648012071 481006855 ...
output:
0 65649062246242 65546595223823 65628849828533 65484640113753 65522783864575 65627849242562 65731455209132 65502612758454 65598412090866 65537713497573 65558349107861 65494745801501 65625377493761 65611889016574 65482751764502 65640912097421 65636892033001 65677439493146 65651253214846 6556848452780...
result:
ok single line: '0 65649062246242 6554659522382... 65464573680451 65596131757597 '
Test #20:
score: 0
Accepted
time: 35ms
memory: 8436kb
input:
19 596153872 298610389 699828099 559878061 100899803 667689602 619784083 100638353 751666693 522413153 150340489 123209237 311371341 262065230 124553199 676772313 731884593 909177981 720010231 155048552 567732710 250706829 62311110 516973913 708300855 413631692 536180231 696368438 857229518 78749916...
output:
0 131042349239670 131295641286351 131081065465607 130955811085890 131055262415594 131238483025505 131093123682819 130906145378441 131175907681317 131125791165948 131039447444430 131033600778659 130826999563861 131033324445278 131173945908966 130958909419970 131165834478678 131068407932403 1308821888...
result:
ok single line: '0 131042349239670 131295641286...31168394014164 131274034028350 '
Test #21:
score: 0
Accepted
time: 80ms
memory: 12020kb
input:
20 508604230 728534757 355946043 169112669 325060907 325787980 550843221 826259912 97259745 390222162 366346834 499465331 923998722 114204477 563766383 80571615 845150638 768136052 952848179 398899577 409966216 651920008 98192185 452465181 803092409 617041811 408488490 737236327 917355776 373811579 ...
output:
0 261815020429051 261717033946615 261847112572892 262101096067027 261854734887796 261978379033520 261909323655727 261704543304762 261810533861903 261971170740979 261729276494526 261752591431279 261823573732422 261735156553942 261641179885639 261946701528214 261899776680275 261879026510017 2619521597...
result:
ok single line: '0 261815020429051 261717033946...61843819020793 262124862955688 '
Test #22:
score: 0
Accepted
time: 90ms
memory: 11892kb
input:
20 944994981 630529365 732630463 228739030 853237135 280798129 970731954 43789820 843262911 823653897 470952524 149375247 193803870 669988577 91299370 340866400 794710904 960572803 164924793 22505613 294886363 587078400 448750564 42836867 739837682 171387781 94578336 745566373 55914352 934657070 481...
output:
0 261778253320017 261911122565402 261957651461577 261904562512096 262001561489905 262067525879734 262007054602433 261987135597346 261724809681755 261777165144866 262140519060093 262042083459984 261526022841605 261707538073528 261901430430267 262150268971427 261760333048406 261597268943325 2617077820...
result:
ok single line: '0 261778253320017 261911122565...61509258612577 261848218136990 '
Test #23:
score: 0
Accepted
time: 84ms
memory: 11968kb
input:
20 125795134 857930106 900885647 69690189 235820318 118807626 342561788 544609512 35255126 69189492 880392117 301871425 180980672 299260818 429772144 839186215 747737756 239912945 149556102 348523065 961087320 174695593 820454398 873038776 330400281 194331207 405360314 135640746 255100556 42759554 1...
output:
0 262129610405184 262187657975567 262103436349219 262374760736791 262389856931489 261863631992754 262003659214424 262141571228084 262123135612266 261958296851757 262025183663895 262310880321669 261971101917973 262214383770814 262184717693874 262112713653701 262304940521483 262254693140994 2622316285...
result:
ok single line: '0 262129610405184 262187657975...62130791680214 262088978910908 '
Test #24:
score: 0
Accepted
time: 85ms
memory: 12004kb
input:
20 862167287 123163886 804444666 937612296 377992946 257485519 560305502 35052112 893358419 622060073 677537463 343206804 446988115 793535156 898936978 639169833 274887444 391730732 806708287 930599238 29677557 863217025 107688140 600719173 359906006 125090996 942942038 815973114 512316753 600108802...
output:
0 262105740643903 262330448704656 262281737519499 262078380631112 262239087244413 261959818467668 262346391913469 262197085480469 262208950627650 262265295638027 262073646677096 262152535145755 262173784140490 262010258701773 261950607865676 262226259143271 261941843161416 262147973836077 2622776643...
result:
ok single line: '0 262105740643903 262330448704...62083549561905 261912312225232 '
Test #25:
score: 0
Accepted
time: 96ms
memory: 12020kb
input:
20 497930032 642570037 992114178 514242122 729612805 800964527 788693307 134996522 933286956 738456016 209738785 462290770 895583466 285622135 253038262 185805717 641300098 710421871 470287390 243796983 374404625 871987463 893218385 887358971 97597126 304126255 587019239 761117974 488426482 40336660...
output:
0 262295538604502 262067680927532 262118243063492 262300911100275 262304889609461 262267561411973 262205885644557 262242217042312 262158684375848 262101467065980 262204395051566 262271177746157 262251988657277 262009120058995 262209851035889 262281812798191 262039626038833 262103983708607 2621301086...
result:
ok single line: '0 262295538604502 262067680927...62296473432657 262343622739071 '
Test #26:
score: 0
Accepted
time: 92ms
memory: 12024kb
input:
20 204074032 88533744 62230483 128314917 434748784 689937311 696680161 181228144 214968164 187279617 366103949 927852592 846692479 609535610 445105131 703224785 238222528 949841216 98607882 512653208 552273756 638826813 552606697 877588776 338168110 268445818 782329099 978869093 566463851 821557580 ...
output:
0 262408164467216 262430874545677 262246597850697 262305836877646 262294753605168 262277636859483 262392243263165 262264637411143 262361230473345 262539500681056 262510050266146 262432396752481 262217852506373 262563442743518 262277523813142 262226795775440 262380337585756 262447596369875 2626471990...
result:
ok single line: '0 262408164467216 262430874545...62441087956905 262349988721803 '