QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#741297#9432. PermutationidRE 1ms3860kbC++141.5kb2024-11-13 14:02:502024-11-13 14:02:50

详细

Test #1:

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

input:

5
0
0
1
0
1
2
2

output:

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

result:

ok Accepted

Test #2:

score: -100
Runtime Error

input:

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

output:

0 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 515 51...

result: