QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#603592#9252. Penguins in Refrigeratorucup-team4744TL 1283ms379316kbC++206.0kb2024-10-01 17:41:072024-10-01 17:41:08

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 10
1 2 3 4 5
6 5 3 9 2

output:

3
5 4 2 1 3 

result:

ok 2 lines

Test #2:

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

input:

5 10
1 2 3 4 5
2 4 3 3 8

output:

30
1 5 2 3 4 

result:

ok 2 lines

Test #3:

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

input:

5 10
1 2 3 4 5
2 3 4 5 1

output:

120
1 2 3 4 5 

result:

ok 2 lines

Test #4:

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

input:

5 10
1 2 3 4 5
2 3 4 5 6

output:

60
1 2 3 5 4 

result:

ok 2 lines

Test #5:

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

input:

100000 96
1996 78922 45321 68844 32404 82013 66552 81163 17216 48170 35495 56660 13480 43118 23173 47257 50168 87069 26167 67231 31758 25694 61063 56642 8923 7727 54528 96554 38964 7604 6822 16256 45300 58869 31359 48638 87645 14779 81505 59585 89293 9291 7002 31810 84701 77648 78295 42595 11394 479...

output:

457992974
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 10...

result:

ok 2 lines

Test #6:

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

input:

100000 84
93330 3894 94859 22134 49668 30606 26739 82976 76701 56323 75537 7626 87226 20857 98177 21811 70827 75898 8111 48223 26186 64222 63002 79024 19126 41638 1048 43857 25379 19764 60207 27675 77665 66327 6274 34861 30287 13449 64505 51490 5804 65843 49014 85795 12365 31565 34411 71697 66568 28...

output:

524727018
1723 2800 15421 26278 31659 42502 42606 56945 60694 62369 70160 73990 80586 88502 89122 59690 27661 33622 94788 14089 1146 2690 3632 4491 5439 8588 17476 17922 18136 20123 24857 39523 18825 28520 30999 32947 36013 41413 43842 43919 54502 58104 60783 65767 69064 71878 74728 75343 76546 7807...

result:

ok 2 lines

Test #7:

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

input:

100000 87
300 88662 44078 62834 3753 7407 33249 23452 84415 76976 83633 97611 16701 2788 75559 56876 65161 78422 41095 40238 89019 95291 81242 34629 35820 2766 266 62909 53458 60609 92867 7751 43644 89656 46268 73554 29490 91474 42521 66646 22973 36675 3527 66659 6283 65870 56067 93748 94932 45445 3...

output:

474454223
16291 67920 66350 36657 80297 50836 75962 67504 74275 82684 44748 18794 20817 23451 67820 94633 35098 26272 62387 64130 97543 95388 6171 41925 9995 21720 51796 81891 29780 53247 63390 78398 10287 31830 44454 46864 63394 76771 87042 17437 8412 58246 18774 97383 36854 4632 32575 64180 48940 ...

result:

ok 2 lines

Test #8:

score: 0
Accepted
time: 70ms
memory: 68240kb

input:

100000 100
55629 14377 79945 51098 90204 3853 3177 32017 78776 91382 20382 74435 13483 67713 43513 69929 15961 6388 48752 94868 14114 90543 87776 22290 94148 14665 67822 15542 37889 31214 53405 58817 74349 80153 50913 24099 84889 86056 59976 40327 59231 97231 45030 99883 57171 7168 60283 46638 6697 ...

output:

12361691
68929 26283 16078 8426 80994 89031 90845 85691 11489 83714 218 43955 79942 49055 15944 46958 3923 50718 51881 87716 91070 33513 46064 56932 23620 95805 36252 61014 77254 96568 40681 51389 15855 70350 42900 63333 35239 73615 3271 20950 31494 86984 66093 18145 50335 78044 93515 60899 73400 82...

result:

ok 2 lines

Test #9:

score: 0
Accepted
time: 610ms
memory: 182356kb

input:

1000000 81
505338 916424 583795 203566 617115 482998 227468 356473 312485 334132 3363 907091 837133 257003 855999 78795 363135 170084 379933 348671 686 989733 970073 613993 760088 594394 96392 386305 559944 490393 934509 798454 875291 431076 978853 472290 445607 906742 260667 85265 928267 662293 850...

output:

1
434417 227927 721379 881382 991471 289735 100004 760754 181792 283705 493486 797104 785634 77915 488388 580313 676447 601952 699628 15819 730688 550717 818459 115930 718996 87059 278519 341770 205766 196170 470043 729232 605060 297713 562576 502884 205091 63073 969512 719434 832742 262524 893809 1...

result:

ok 2 lines

Test #10:

score: 0
Accepted
time: 1283ms
memory: 379316kb

input:

1000000 855853371
671882 962935 236810 309323 731542 936655 349551 915671 728370 235701 940712 512459 431213 624267 374020 458688 149286 146845 938189 496488 78945 50430 630392 695360 119964 195349 284330 320026 415129 675618 454235 401145 366361 129120 527400 159031 540788 688684 238547 914676 4502...

output:

641102369
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 10...

result:

ok 2 lines

Test #11:

score: -100
Time Limit Exceeded

input:

1000000 957571370
997755 236289 938217 183949 245742 901546 815337 293623 483897 447597 648079 8259 601800 328449 705646 550681 971772 635040 983132 321434 297617 994716 277334 407243 7535 441861 630008 322245 4749 622934 40122 595912 610078 418322 792502 659098 981324 115306 196723 995928 653988 12...

output:


result: