QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#720676#9432. Permutationucup-team580WA 232ms3932kbC++143.5kb2024-11-07 13:38:412024-11-07 13:38:44

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
1
0
1
0
1
1
1
2
2
0

output:

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

result:

ok Accepted

Test #2:

score: 0
Accepted
time: 232ms
memory: 3932kb

input:

1000
0
1
1
0
1
1
1
1
0
1
1
0
1
2
1
2
1
1
0
2
2
2
0
0
1
1
0
1
1
1
1
2
1
1
0
2
1
2
2
1
1
1
2
2
2
2
1
1
1
2
0
1
0
0
1
2
1
1
1
0
0
0
2
0
2
0
1
2
1
1
1
1
1
2
2
1
1
1
1
2
2
2
2
0
0
1
1
0
2
1
2
1
1
2
0
1
1
2
1
1
1
1
1
2
0
0
2
0
2
1
2
1
2
2
2
1
2
2
0
2
1
1
0
1
2
1
1
1
1
1
0
1
2
2
0
1
0
2
1
0
1
1
2
1
0
1
1
1...

output:

0 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 ...

result:

ok Accepted

Test #3:

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

input:

1

output:

1 1

result:

ok Accepted

Test #4:

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

input:

2
0

output:

0 1 2
1 2 1

result:

ok Accepted

Test #5:

score: -100
Wrong Answer
time: 0ms
memory: 3528kb

input:

3
2
1
0

output:

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

result:

wrong answer Wrong Anser