QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#815025#9886. Long Sequence Inversion 2ucup-team5635#WA 49ms7320kbC++203.0kb2024-12-15 01:08:542024-12-15 01:08:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 4040kb

input:

3 2
2 0 1
1 0
1 0
0 1

output:

14

result:

ok "14"

Test #2:

score: 0
Accepted
time: 1ms
memory: 3952kb

input:

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

output:

60

result:

ok "60"

Test #3:

score: 0
Accepted
time: 1ms
memory: 3840kb

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: 36ms
memory: 7320kb

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: 49ms
memory: 6632kb

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: 46ms
memory: 5960kb

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: -100
Wrong Answer
time: 48ms
memory: 6300kb

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:

841737073

result:

wrong answer 1st words differ - expected: '783661427', found: '841737073'