QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#813435#9886. Long Sequence Inversion 2ucup-team4125#RE 38ms8264kbC++171.0kb2024-12-14 08:58:522024-12-14 08:58:52

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3820kb

input:

3 2
2 0 1
1 0
1 0
0 1

output:

14

result:

ok "14"

Test #2:

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

input:

2 4
1 0
2 0 3 1
1 2 3 0

output:

60

result:

ok "60"

Test #3:

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

input:

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

output:

138876070

result:

ok "138876070"

Test #4:

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

input:

1 499999
0
29619 375702 37496 460566 304389 460489 39603 7903 258016 288263 472075 22596 331493 275661 56064 364938 166384 286514 449089 71295 83634 202532 408346 34349 425929 67826 14897 21894 481996 394928 368071 394991 213881 134433 345718 371785 68019 323247 290861 175555 464454 99312 318279 474...

output:

633597495

result:

ok "633597495"

Test #5:

score: 0
Accepted
time: 33ms
memory: 5944kb

input:

2 249999
0 1
58555 86505 217289 160736 134400 101021 40586 62145 139626 85795 167411 201337 98 206983 47713 102694 69929 120989 89299 38007 101502 27064 176770 192694 169507 5163 4199 146210 77723 135393 61474 73326 132827 234968 141265 84204 225082 101831 136349 51115 81706 174808 187315 54745 2076...

output:

434358382

result:

ok "434358382"

Test #6:

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

input:

3 166665
1 0 2
149754 119575 144273 87381 53800 132528 160539 144804 131044 71756 48801 102732 165255 134183 209 129510 122930 87083 34658 111061 142811 141126 65071 45113 142272 2250 137690 86010 2090 101555 148432 56852 17952 53004 11972 36883 144729 44003 59504 11894 15877 47449 95378 59419 12379...

output:

906627900

result:

ok "906627900"

Test #7:

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

input:

4 124999
2 1 0 3
6758 121850 37185 80215 73912 42468 46605 75414 112915 110077 22953 23013 97274 13521 49377 118836 81264 34203 17001 55248 75687 111368 83888 8716 40342 34360 114608 49408 91858 84412 45961 7941 14659 13108 93982 12542 100883 88893 77840 24386 115013 55592 36874 19448 55866 117277 5...

output:

783661427

result:

ok "783661427"

Test #8:

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

input:

5 99999
1 2 0 4 3
59880 90678 66325 71329 58429 10918 50915 81996 24439 90993 49857 91190 60989 21075 94746 42666 9319 72804 79261 60359 83848 27702 86471 32161 13537 75754 38237 8840 55918 4178 8934 35695 23232 76054 17267 46410 12231 41364 80427 84377 99775 98696 10888 60764 72426 67093 83038 9642...

output:

943262391

result:

ok "943262391"

Test #9:

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

input:

6 83332
3 5 0 2 4 1
23375 44904 82334 78434 52536 65843 65381 59744 70793 81766 71276 33137 25941 2439 9277 69418 5390 70138 45653 18673 76312 79008 40313 53316 23214 44750 10693 66067 26333 1060 33358 62685 24070 8875 5941 2318 35264 60839 78415 80418 34028 42868 67749 75129 39215 63906 79295 13386...

output:

610585340

result:

ok "610585340"

Test #10:

score: 0
Accepted
time: 33ms
memory: 5564kb

input:

7 71427
3 6 4 1 0 2 5
34090 48725 333 51751 7629 38824 39085 62952 24176 69379 4757 42969 69339 42930 52225 42031 60357 16793 34973 67072 2520 66644 32959 2271 58305 53639 42761 49902 9231 65766 34634 64919 26864 32021 14941 1851 67795 6258 48147 68159 4243 68679 31873 9377 54293 18737 64854 600 122...

output:

778724156

result:

ok "778724156"

Test #11:

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

input:

8 62499
7 1 2 4 5 6 3 0
34446 54074 40453 38008 7541 4408 33235 26079 58367 22983 13740 33745 23111 3275 57455 14786 31395 16304 36983 46410 35201 34501 26196 1692 47781 62372 4683 33066 28853 50418 56448 41431 45739 4000 35333 59573 28135 60054 13982 48099 23194 15107 19677 47537 43224 24733 20319 ...

output:

660696295

result:

ok "660696295"

Test #12:

score: 0
Accepted
time: 33ms
memory: 5608kb

input:

9 55554
2 4 0 5 1 6 3 7 8
21364 13505 29278 32500 13429 42672 907 20914 26021 44347 9295 52994 12716 18773 20180 27057 28386 17735 14198 23865 53006 9664 25986 55188 20030 4242 45208 3471 19956 32516 23152 41469 49370 16032 51480 49711 20874 29136 53412 29884 7599 6659 8204 36109 3795 17942 4654 543...

output:

780717176

result:

ok "780717176"

Test #13:

score: 0
Accepted
time: 33ms
memory: 5348kb

input:

10 49999
7 3 5 0 9 4 8 2 6 1
44115 27338 24426 40634 26394 1774 40029 15185 8950 33647 44605 34543 39457 6908 19217 26450 24356 1352 18008 44712 8996 12246 25910 15898 11398 2380 37652 41054 17029 15235 21088 8286 39723 37397 4361 46958 30514 4083 30603 26353 12945 45602 26717 21513 36403 4154 43047...

output:

421670636

result:

ok "421670636"

Test #14:

score: -100
Runtime Error

input:

166666 2
73919 22004 17019 24274 113502 94037 21567 38894 159986 162338 13751 118116 50004 34204 166111 74497 129552 38238 146086 115675 151279 58169 31397 49985 143070 24344 143100 52912 1784 62654 81793 116629 131580 59232 93775 5188 78872 125643 53720 29011 117160 41260 166355 42771 133461 85634 ...

output:


result: