QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#393877#6108. Permutation Arrangementucup-team2335#WA 1ms4044kbC++14886b2024-04-19 15:54:312024-04-19 15:54:32

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

10
3 -1 10 -1 8 -1 -1 -1 -1 -1

output:

3 1 10 2 8 4 6 9 5 7 

result:

ok 10 numbers

Test #2:

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

input:

2
-1 -1

output:

-1

result:

ok 1 number(s): "-1"

Test #3:

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

input:

10
-1 -1 -1 8 -1 2 10 -1 -1 3

output:

1 4 6 8 5 2 10 7 9 3 

result:

ok 10 numbers

Test #4:

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

input:

10
-1 2 -1 6 -1 1 -1 5 -1 3

output:

4 2 8 6 9 1 7 5 10 3 

result:

ok 10 numbers

Test #5:

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

input:

10
-1 3 -1 -1 5 -1 9 -1 -1 -1

output:

1 3 6 2 5 7 9 4 8 10 

result:

ok 10 numbers

Test #6:

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

input:

10
4 -1 8 -1 -1 3 -1 9 -1 6

output:

4 1 8 5 10 3 7 9 2 6 

result:

ok 10 numbers

Test #7:

score: -100
Wrong Answer
time: 1ms
memory: 3900kb

input:

1000
80 360 454 409 303 639 154 486 365 955 -1 -1 625 488 726 -1 94 348 57 -1 287 472 551 981 106 381 199 877 660 736 762 207 -1 59 437 -1 -1 343 593 -1 151 225 -1 -1 430 854 771 378 785 -1 668 617 404 272 -1 871 305 920 507 101 -1 376 123 959 293 327 286 416 77 677 388 336 53 833 932 633 855 744 25...

output:

-1

result:

wrong answer 1st numbers differ - expected: '80', found: '-1'