QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#823542 | #8694. Magic Strings | qiuzx | AC ✓ | 281ms | 3708kb | C++20 | 27.2kb | 2024-12-21 07:50:28 | 2024-12-21 07:50:29 |
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: 3696kb
input:
3 1 2 3
output:
4 17 226
result:
ok 3 number(s): "4 17 226"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
10 1 2 3 4 5 6 7 8 9 10
output:
4 17 226 35324 841154308 232556347 659407241 893179584 723221656 778446692
result:
ok 10 numbers
Test #3:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
10 17 41 54 16 25 42 33 79 89 13
output:
334803942 190974916 7890296 158782313 310872188 212690305 505136249 687318150 175533893 213037344
result:
ok 10 numbers
Test #4:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
10 387 582 566 165 66 32 669 483 217 138
output:
513467597 278322703 586168595 695269155 44493214 990028026 978459869 177374555 963710290 794302642
result:
ok 10 numbers
Test #5:
score: 0
Accepted
time: 2ms
memory: 3580kb
input:
10 7604 6322 9831 57 6343 7057 736 4955 2092 5749
output:
710255038 11853808 490811839 981412157 87832285 710905442 447652619 41357994 414562925 101712113
result:
ok 10 numbers
Test #6:
score: 0
Accepted
time: 14ms
memory: 3612kb
input:
10 2399 77529 19918 95997 55321 33329 56611 79184 57726 47397
output:
953842138 495858337 288637037 714423385 807059288 75274835 853178873 604884046 735522123 159079390
result:
ok 10 numbers
Test #7:
score: 0
Accepted
time: 163ms
memory: 3704kb
input:
10 726413 702237 763559 697069 434939 428316 373895 944226 560889 884119
output:
234153777 327302968 650657268 57938236 753817708 669895290 224057181 163142866 114915441 367543648
result:
ok 10 numbers
Test #8:
score: 0
Accepted
time: 255ms
memory: 3556kb
input:
10 4413587 1762175 6513935 6635216 7364527 6552081 9604788 2875379 6527131 1712310
output:
851143014 736277562 647807306 542314784 105130983 715778052 101262496 964546683 37989706 731529400
result:
ok 10 numbers
Test #9:
score: 0
Accepted
time: 254ms
memory: 3612kb
input:
10 99142318 94241921 70864603 5707601 75070761 53290217 75395658 86030991 73417509 90748742
output:
145009479 835220922 737041486 958063087 449299296 289706218 171423907 275717521 967071370 926051322
result:
ok 10 numbers
Test #10:
score: 0
Accepted
time: 190ms
memory: 3684kb
input:
10 377675284 555591836 284199674 988127329 678606811 824031103 867837273 92699667 60855629 177756137
output:
163274986 884210978 592646202 213748754 225829133 194720999 866903930 263922671 805551883 399352398
result:
ok 10 numbers
Test #11:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
10 7001691582 8555723215 4437038427 7982147057 8377256184 9651994040 4790695345 5533919028 3589848451 857744728
output:
687447681 467368219 380852499 80079332 137659897 257697886 698317476 183816395 97681112 893920283
result:
ok 10 numbers
Test #12:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
10 17571924324 36182085221 78290159631 82919766010 38531934033 24655820163 83471942007 62256691880 80939097912 37193887565
output:
331611285 79979001 944341400 207645354 552020067 651654851 667115619 221153647 721691343 823124451
result:
ok 10 numbers
Test #13:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
10 73541739298 947605518958 783915925689 607775367937 376448197880 988726588480 552813891336 180388849052 647858542654 993981826746
output:
409308610 474144034 905718920 261293262 971504451 537957077 775309637 526412654 171695034 727819527
result:
ok 10 numbers
Test #14:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
10 1492678950727 897014858700 5697839270066 1780678059557 8686590885665 3111163205574 4684999191010 2160436253224 6024812191852 36595362789
output:
159915980 909166503 308195858 877249760 230869240 701342324 649748091 726488755 241861160 371491732
result:
ok 10 numbers
Test #15:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
10 25354127897449 86415331169863 21284845595484 2023671637616 7977817734743 70802403977590 49289316413331 74746968008887 85428828774253 96933511924893
output:
338625661 717792442 318096469 98300605 450260946 764898714 308257003 544694806 212404818 332619813
result:
ok 10 numbers
Test #16:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
10 558689232914868 977368100778913 4743693675341 910296749897390 246320792125131 437237354481076 873314791751277 835903426952222 762826831075256 452857257889202
output:
195030929 751477756 274466058 259160190 160657029 865786841 929058905 978422692 208623535 737397534
result:
ok 10 numbers
Test #17:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
10 5179917539489557 6443310397582299 4341546988815030 2109925026234312 7377721357325744 7081846751984195 5747277704410536 5809518373367153 134793649858274 5361418391037950
output:
733992228 713614968 243952941 605774292 363996298 317543251 399507072 31169149 910386216 605365018
result:
ok 10 numbers
Test #18:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
10 16808865243429052 62226239907619602 39000926248507607 64338233972998184 84815799449113562 94725574548949472 29080015749890487 82136313854933830 47514174283900227 77727361345602986
output:
723061252 133532137 528541804 616401465 388388455 590457538 897662540 239427399 50380822 397985959
result:
ok 10 numbers
Test #19:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
10 937503407642094588 65573712450155924 332752269790446481 537299780444482946 981692149521063529 175269467084490398 628858161625182940 293186491853757668 819302122019858385 138773595124689206
output:
246527247 762201935 768085641 71276329 677741077 185244959 737305972 530469519 943279078 263346550
result:
ok 10 numbers
Test #20:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
10 903433535240908269 319659274507011561 678570134375162090 764709477939593941 447778484636963310 682285116830902609 308929532525576118 90710386015154890 366646326152538500 111598943037345726
output:
625732092 118911342 254965900 639027590 130445334 330112835 486302681 147643271 618570326 981412264
result:
ok 10 numbers
Test #21:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
10 999999872586935386 999999644538695895 999999565429268372 999999487380255295 999999082707430058 999999664132356256 999999287428640342 999999473037061967 999999275129911305 999999457095681903
output:
480695893 401278127 622611769 676303495 479415039 135605544 369456588 626348385 316615519 484382130
result:
ok 10 numbers
Test #22:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
10 999999313616758501 999999852521544187 999999059627135201 999999018397613661 999999544679784747 999999890908661686 999999208504953894 999999080003304909 999999256725681557 999999417373887763
output:
596377270 525528475 958123454 415704046 843204084 137074875 85076271 896692723 298632735 930172916
result:
ok 10 numbers
Test #23:
score: 0
Accepted
time: 249ms
memory: 3700kb
input:
10 161813283 809067287 582513841 441740763 499668131 403435112 705266396 763256964 872528015 812226981
output:
198481587 112358822 825131937 247254381 675643084 640129621 130240083 666000248 661779280 249039293
result:
ok 10 numbers
Test #24:
score: 0
Accepted
time: 166ms
memory: 3576kb
input:
10 845803988 916850394 128758629 20047387 243483433 549716342 613975361 816151808 456653263 908536325
output:
508308194 804074338 179593835 479891892 623926253 618633505 580139624 323371371 820961385 971607604
result:
ok 10 numbers
Test #25:
score: 0
Accepted
time: 269ms
memory: 3612kb
input:
10 523446312 301845822 763275603 893415626 421976705 32172501 462361131 200708928 531484819 401217232
output:
491908582 463974919 15772991 687416400 94555044 8096069 774901135 871632510 816485552 339757009
result:
ok 10 numbers
Test #26:
score: 0
Accepted
time: 180ms
memory: 3644kb
input:
10 350990780 233132707 906396074 878418306 721218426 208752149 108842691 110787595 64880056 62280695
output:
444226316 492319390 936472790 143136324 378773102 442961110 768495908 357019075 412778747 553982280
result:
ok 10 numbers
Test #27:
score: 0
Accepted
time: 89ms
memory: 3524kb
input:
10 144083265 248053580 944227586 440776367 949608672 754575045 237927831 869591704 138018848 915076236
output:
706135259 794494017 86125034 811027781 802961549 602552952 319432814 799784809 879097897 215347156
result:
ok 10 numbers
Test #28:
score: 0
Accepted
time: 16ms
memory: 3556kb
input:
10 42505 64761 90680 85498 78486 36289 67434 97075 46848 11036
output:
481920041 311564246 686022536 965820459 787141060 598048772 128016858 722485266 586133631 33612403
result:
ok 10 numbers
Test #29:
score: 0
Accepted
time: 17ms
memory: 3624kb
input:
10 82868 71561 46560 40623 84351 79607 28633 14923 91110 97365
output:
286593412 414322260 493624035 583502092 716278532 120948415 871975842 726545922 889400768 737694950
result:
ok 10 numbers
Test #30:
score: 0
Accepted
time: 9ms
memory: 3504kb
input:
10 36394 36644 1664 29056 61000 23343 48713 68866 13093 29456
output:
125621988 237029644 498187677 336645266 615898853 164920237 196122460 458963714 148343765 382901487
result:
ok 10 numbers
Test #31:
score: 0
Accepted
time: 10ms
memory: 3576kb
input:
10 5529 2288 57810 76753 63096 68649 40729 77789 36273 55248
output:
738221335 907454024 585828902 344562388 134610972 239498464 133982766 918306223 670140139 204100426
result:
ok 10 numbers
Test #32:
score: 0
Accepted
time: 19ms
memory: 3556kb
input:
10 34040 89321 97729 95631 13968 84070 74353 82085 74568 77895
output:
982536654 878927285 681930293 832434635 895145523 620155124 805712285 331722716 838587078 519002495
result:
ok 10 numbers
Test #33:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
10 1620859717 1470678198 1647367538 1505564932 1143545316 1912630623 1295529424 1426741085 2639904684 1211869661
output:
534852408 136768319 247778871 237047263 110223284 101047965 760134691 426479564 500847023 891049916
result:
ok 10 numbers
Test #34:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
10 2773316571 1379961707 2220276243 1320967104 1861928661 1498208468 1347232668 2760394181 1208466068 2846569533
output:
397587665 905382416 924169398 5925648 924924577 114253971 897781982 907533543 434053884 589002690
result:
ok 10 numbers
Test #35:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
10 2240250833 1702678352 2600864807 2651992924 1205453024 1851349285 2805817025 2169674581 2950729935 1336363434
output:
308358474 387981195 931167046 176526342 911412223 45849950 785446689 420472423 162569265 900703234
result:
ok 10 numbers
Test #36:
score: 0
Accepted
time: 0ms
memory: 3508kb
input:
10 1719208811 1229806771 2846546034 1427911962 1163676399 1144463204 1525635668 1526700709 2498518670 1013313586
output:
20110525 87628170 185828669 359157808 891259439 810784945 255291283 679997094 28996693 399766396
result:
ok 10 numbers
Test #37:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
10 2694400558 2833922128 2842804623 2196843876 1817069356 2723855312 1586577873 1624905623 2064130732 1772464079
output:
451987805 170636620 259168055 956699408 463424810 116636811 915399587 299930300 167820040 317009630
result:
ok 10 numbers
Test #38:
score: 0
Accepted
time: 281ms
memory: 3612kb
input:
10 511854304 519824481 552687269 510559929 582346380 529582029 555217503 586428620 546650982 589775697
output:
433854361 592693053 936942394 601841667 965554070 315120288 898248737 520581846 231557322 829183199
result:
ok 10 numbers
Test #39:
score: 0
Accepted
time: 225ms
memory: 3576kb
input:
10 660964541 676384184 623789642 633010162 672323793 674081129 612902455 649961314 614843909 682498866
output:
88336059 339911721 132792769 11773422 815596053 334872293 638648510 882150401 930879128 966363846
result:
ok 10 numbers
Test #40:
score: 0
Accepted
time: 258ms
memory: 3548kb
input:
10 793819917 744481808 753599678 760388183 793054578 791903139 779694188 720234513 786667074 720184185
output:
186184809 302180971 469386673 771905915 130596741 563606288 644143563 563742306 948804463 971589262
result:
ok 10 numbers
Test #41:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
10 894626768 873815644 876660925 878275790 824314908 876097025 875266825 845129830 841267382 837325364
output:
491584203 358563649 171472324 688418636 108262432 317065671 546264500 730498456 176209748 76944546
result:
ok 10 numbers
Test #42:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
10 924384231 945723410 988174335 923599741 933154453 924621305 980493725 951452610 979099895 970750179
output:
399401948 366363289 367756142 7097395 986184372 397540789 689817912 866853597 709375580 310229281
result:
ok 10 numbers