QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#364545#7933. Build PermutationGuanYunchangWA 259ms69536kbPython3837b2024-03-24 15:13:042024-03-24 15:13:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
4 2 5 1 3

output:

2 1 4 3 5

result:

ok 

Test #2:

score: 0
Accepted
time: 5ms
memory: 9940kb

input:

3
2 2 3

output:

-1

result:

ok 

Test #3:

score: 0
Accepted
time: 205ms
memory: 69100kb

input:

199528
581552649 419782901 924554494 589802859 878336763 659984178 419820729 521791999 956262027 523946290 442086405 808419260 875183942 860794919 584899704 494193909 687014591 794119827 641706288 734029639 795387770 803653459 889799156 455122734 655375888 757642629 427654115 987811208 593072829 584...

output:

-1

result:

ok 

Test #4:

score: 0
Accepted
time: 244ms
memory: 69400kb

input:

199680
774760412 315033238 665140012 402128528 221827348 923752357 281703052 551555739 483983889 622621809 949928382 909484599 413397988 424613137 353323926 392255354 551928848 464853065 860603765 618364501 423106762 752293338 551415838 898671881 969815739 150102831 644806419 333507443 379455235 981...

output:

73439 148005 8648 89423 141979 147470 141410 69725 40153 63979 78432 103327 181609 135195 105239 127546 32464 34284 174446 34920 30629 168594 168530 161118 93855 108316 180454 174923 1995 85530 196615 98831 140833 5779 144616 158480 4431 142576 165252 72206 116180 122123 113985 60323 86875 40860 134...

result:

ok 

Test #5:

score: 0
Accepted
time: 192ms
memory: 69532kb

input:

199443
280209150 111548592 486449150 830619773 101477510 250948810 530722572 122879826 934988883 597990248 855838792 673988482 368821924 128160089 591934983 960002116 507933024 995671195 672047771 312730948 102630166 364851921 555488581 895717854 273833610 945841457 136208436 989527045 110773712 399...

output:

-1

result:

ok 

Test #6:

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

input:

199064
395536129 907689205 713291553 247152332 837613842 651870307 318145619 297825229 694860398 485336048 726785083 336968767 539657663 608859925 340007894 787651677 424619844 378960837 387429699 403875365 267181702 869225817 842816404 834055361 355960077 364915320 761436937 285945913 958875534 344...

output:

90689 177350 72561 88464 84579 128844 13003 162950 49523 62343 149063 120221 169180 125573 177644 90361 122108 179621 84210 189075 100787 59823 190257 86953 68262 147985 10466 31754 159731 90031 157023 105179 182297 26451 128628 145927 27934 166124 117482 167506 116265 159293 44392 771 78580 46539 1...

result:

ok 

Test #7:

score: 0
Accepted
time: 230ms
memory: 69144kb

input:

199200
375547557 704748841 811879539 586029824 973898321 679549697 483248253 903432805 656702253 776120630 714978346 515770075 775967369 625240783 379961324 762796911 672917145 558568372 665181932 699831164 703435266 866858177 756366027 702475930 720545487 355316026 582876741 413582305 932382221 938...

output:

65598 126883 69878 110403 63037 157804 194175 46983 9003 66208 167174 198109 151603 1513 140795 88546 153690 110397 20817 188288 181266 179819 129050 54475 194271 9770 27464 196198 44363 71091 26088 66527 25372 58812 143500 90503 14774 79405 130634 20673 86168 54230 167760 32228 189645 160449 135568...

result:

ok 

Test #8:

score: 0
Accepted
time: 241ms
memory: 69188kb

input:

199422
652117536 757863772 946284870 601551925 316292341 469722359 423231657 139434468 101118798 881602313 225927623 995899451 404624788 980937160 754603225 738440429 126730391 318988705 916885091 842591009 593784745 707735774 995358171 297062957 466929792 226424017 395211321 573384018 166155976 468...

output:

79316 153976 98358 23096 118600 167234 90922 46186 46387 119610 48328 60287 111187 173175 30486 144617 158807 114524 55750 199050 192780 52063 142682 53092 28416 70086 51872 32838 51207 127803 42686 81635 195351 54480 179814 92707 27162 165580 67034 125806 54208 25464 11748 66022 159908 20043 181611...

result:

ok 

Test #9:

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

input:

199314
779089675 180313771 82646931 567030121 835772831 863349060 306916189 475025091 833291933 195754301 911505781 281578385 895319447 342921767 432890768 809259347 943075789 591269786 782363609 356142557 421493540 702147760 907573933 343411341 586881410 455241843 614017563 485009037 858862375 9888...

output:

50739 193790 5068 178647 158223 108029 66165 80270 62655 14740 82567 56641 186164 69235 88749 198217 88009 27106 157015 76637 159137 174055 145220 74489 180830 106957 79830 146241 16325 5931 33135 119262 105096 115383 108479 35552 15612 46942 192118 100145 22989 119552 13262 182699 27223 98591 15970...

result:

ok 

Test #10:

score: 0
Accepted
time: 180ms
memory: 69196kb

input:

199623
392554692 932351024 845770400 936136176 919874396 422214690 737809080 455177266 780882808 545380592 480542738 919353018 623278426 668686810 644645831 998117398 862300168 784787307 884384646 756759249 938450058 549433713 532106333 758337358 418094811 632390157 621808367 568859120 717763279 843...

output:

-1

result:

ok 

Test #11:

score: 0
Accepted
time: 225ms
memory: 69332kb

input:

199716
655903285 917298543 569611236 360686283 462261919 799881596 495538213 693462735 414085131 329548980 570743587 756715389 573119207 459657536 772161643 763811288 914294629 324042984 710911571 969448401 540125120 601831555 920413269 600337142 387447313 841941125 326407927 931548705 442981204 502...

output:

146742 33538 31727 71600 31963 190236 31346 37046 102034 10615 11452 73298 142096 5839 86956 94138 122714 80312 4569 56196 178466 66473 102551 124918 57729 172346 109129 12139 123775 193799 172170 177778 131460 135222 135390 31908 96996 34404 174312 91382 140164 181249 178439 96764 20570 101687 1687...

result:

ok 

Test #12:

score: 0
Accepted
time: 242ms
memory: 69456kb

input:

199949
847816659 278605693 473110543 354208594 848527377 267023373 630384053 419592241 458247306 590422973 466574822 909275887 750531174 666767850 739894604 803975497 399276167 364903283 343199144 209193164 566751674 795500685 556627557 322132171 848775636 348742850 280895947 828646447 956663214 939...

output:

137059 42246 89517 11390 31390 190736 162502 86447 80384 38107 171345 159065 191914 32508 95587 107947 136820 83363 196699 191800 173258 85496 137034 62058 194951 152842 175863 185883 100729 69254 150031 121191 121511 197538 128817 40051 164197 75944 3443 150861 131083 100446 91672 8189 68 98651 187...

result:

ok 

Test #13:

score: 0
Accepted
time: 230ms
memory: 69156kb

input:

199420
945447227 465060454 827884358 796076544 443149303 537639575 166964585 220047998 436766345 817446458 615660224 645073907 587540333 449786850 153065680 676116289 394215247 346980676 717806040 201029653 677810775 243141888 467658512 494573238 717926593 930730078 404426659 301182725 487803199 976...

output:

117461 127049 163109 131308 40304 50152 46226 225 123681 42355 11009 176986 91108 161310 171285 128106 161983 105255 47818 170671 35858 95441 131384 164895 162962 178451 112960 90975 88233 50261 152741 131307 86858 154647 85630 48317 27052 154368 192829 134060 29225 176883 99304 45951 71839 105127 1...

result:

ok 

Test #14:

score: 0
Accepted
time: 164ms
memory: 69124kb

input:

199208
839543929 858427937 802530920 949495146 806359583 733883807 878215446 837533918 475446263 617254513 914324056 560726191 678324487 886092280 598225662 805347486 686081718 802877371 687105999 656763773 834927985 641151628 845853359 545009807 798080187 783387146 641396408 670039126 586964329 927...

output:

-1

result:

ok 

Test #15:

score: 0
Accepted
time: 165ms
memory: 69116kb

input:

199149
547155668 96215023 916697184 710089700 48871340 836676643 316979585 466491234 509801160 820524910 841958453 363582685 809422685 570297018 921382230 604247527 242281404 977146929 263678155 148527198 105878619 80944319 786748678 940652256 412516057 805408001 351236429 452488377 382928722 661967...

output:

-1

result:

ok 

Test #16:

score: 0
Accepted
time: 241ms
memory: 69208kb

input:

199304
920171960 720501819 647519314 453634072 735565570 626284730 785372403 486495835 880721295 922110866 530474126 980284244 573262864 979783379 836016714 945569275 383444602 744693416 620879494 719584247 803210304 975086092 548928427 502141495 837393587 782228383 747237646 917447793 516800769 875...

output:

147684 71783 40471 20644 100640 412 153817 163686 80143 69212 32223 29586 180567 33292 123019 13664 23605 186237 13657 176895 159975 7552 99775 187310 145828 23611 16882 167850 13841 178403 188331 128901 132397 48852 195575 26916 130318 11847 133476 78943 177271 49810 125940 152638 92426 81215 17050...

result:

ok 

Test #17:

score: 0
Accepted
time: 240ms
memory: 69100kb

input:

199276
670132098 660399689 502873723 566950770 975458847 604290520 965775730 592689618 880735321 412373437 625326307 852952426 592026655 418842329 663185704 753994781 804874065 670549326 600380078 755706813 610920002 986585202 708816123 927006781 378413396 492517127 438669348 726387134 634795942 782...

output:

170865 164720 24349 21492 147971 92773 43175 127863 74824 80681 168653 181605 109558 702 44666 147068 61924 122436 86586 163023 164778 134464 146461 6797 19001 141696 65956 40662 154825 44458 104598 142608 115498 156300 161261 66865 119298 146060 77566 26450 131757 654 65217 191546 193903 23110 1469...

result:

ok 

Test #18:

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

input:

199390
756700183 803484789 160829498 644341383 549386096 575511809 816399234 575392561 171598712 483498876 244045876 887378201 537628876 80171393 614610882 821687701 672726691 874537345 653980600 927739039 787641289 286494803 684556604 330301640 960285034 787968234 817064607 572191668 192588399 8645...

output:

100077 175539 151540 153071 191151 173749 160786 42235 68012 18425 128346 95413 25230 3506 138585 143683 26746 174341 73611 175811 55294 190150 52523 188808 55306 188732 143560 103452 157832 179867 171522 118456 189327 148170 91442 189589 26590 85667 59306 1634 54298 65415 195938 182710 166212 36740...

result:

ok 

Test #19:

score: 0
Accepted
time: 239ms
memory: 69248kb

input:

199076
95742784 181404563 291064049 483294056 268798990 8500063 684222584 477165916 239403760 586478657 171363011 860882338 66852222 764959203 239395345 14508090 286755101 269740680 518204288 80068532 963522840 47188320 799705024 150150480 313304920 807425453 933355440 615986008 953506026 480939932 ...

output:

136445 144338 1991 97334 56571 34781 145477 36994 187324 197059 159089 43227 61752 186280 193787 56457 138284 196249 16344 158873 36852 24087 182045 114796 56391 41149 14131 162224 63268 12400 137170 160393 143238 67937 174855 48874 89093 21802 51333 104011 96806 88592 100347 101837 32228 43492 1889...

result:

ok 

Test #20:

score: 0
Accepted
time: 168ms
memory: 69104kb

input:

199292
532863195 517464626 553917998 993384218 887868305 617250923 860867564 840460079 891393160 742091596 566210311 889113473 810653692 975582282 536650583 868675431 662275437 693382294 565993106 848739952 747616163 663040373 829419281 726752546 856365377 593533356 690822494 783033459 987610036 801...

output:

-1

result:

ok 

Test #21:

score: 0
Accepted
time: 200ms
memory: 69212kb

input:

199177
303416650 335879371 358183498 747006833 258253401 411802769 635934120 444577541 234040698 926862406 777070126 921701372 787227274 891943513 717000242 553222678 222456541 801896065 764901868 772353858 285523796 279039069 263568874 439555236 587526237 137078510 924336705 335745918 306840087 653...

output:

-1

result:

ok 

Test #22:

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

input:

199015
787552471 662045793 785088199 438944540 230172339 998669824 779203678 973846510 390818416 595024932 90574524 852010035 799986625 963357698 940894571 363168406 410596666 563577445 549706049 917954217 97545431 549225574 939736045 900262253 511589804 611129702 186197058 129410589 769474187 86404...

output:

106851 52966 30460 21951 171728 71712 95816 188374 91407 182918 29381 12290 101625 25537 114674 35960 184883 14445 51309 57756 35103 87000 82420 29000 31397 100112 198578 869 190354 36914 22469 116714 130051 193196 33132 131051 80457 32283 81152 15725 121478 165170 83209 100933 87216 170123 153286 1...

result:

ok 

Test #23:

score: 0
Accepted
time: 141ms
memory: 69448kb

input:

199950
335662546 422447746 497315842 526014441 453768591 749407770 234350523 475790097 603864687 796929743 772501385 301274668 338201455 521308103 477687135 920597922 581597435 537894950 806358110 472586761 835349886 974487580 355616276 408486547 350629821 582611401 808011441 598902525 823090806 886...

output:

-1

result:

ok 

Test #24:

score: 0
Accepted
time: 163ms
memory: 69500kb

input:

199064
533939210 705130557 475992907 222134386 427514413 918157974 820755268 703334424 439990781 306244120 932809478 827971981 790723610 453065023 212778526 421781338 494765952 628171729 367251740 899175555 914901884 483879953 228041112 570237398 586586699 840582592 832944124 875149840 986617457 475...

output:

-1

result:

ok 

Test #25:

score: 0
Accepted
time: 259ms
memory: 69128kb

input:

199263
629441146 923860272 976351138 309451554 255621652 369081004 689467118 878184063 770685475 744647934 535512554 322693346 768878127 364742762 779220235 925719695 209918681 694937599 577750505 370506341 727354876 789730423 942417731 429888957 220786276 202708992 913762582 699189790 717162420 356...

output:

66240 16387 129330 22010 27711 80920 143873 48913 88020 8239 117082 135008 161247 135337 22466 89525 61215 56177 186655 161711 83555 111215 168892 119063 18208 94691 119652 90186 167857 164441 43737 195806 69007 129164 20829 60447 57689 21064 654 135916 86938 150980 60950 34559 85154 151009 176324 5...

result:

ok 

Test #26:

score: -100
Wrong Answer
time: 165ms
memory: 69232kb

input:

199457
635956635 997379048 580801179 648721126 844051126 696590908 611191061 369504695 970491705 788512782 606619085 542075727 371113751 563936170 697805647 882503966 620791149 609895839 985703453 840125496 964427941 377279863 550733400 885439579 563838412 644913826 726382614 704767837 845770666 478...

output:

-1
-1

result:

wrong output format Extra information in the output file