QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#720670#9432. Permutationucup-team580WA 217ms3920kbC++143.4kb2024-11-07 13:37:542024-11-07 13:37:55

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 217ms
memory: 3920kb

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: 3660kb

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