QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#556671#7757. Palm IslandMaMengQiWA 1ms7856kbC++20620b2024-09-10 20:07:362024-09-10 20:07:38

詳細信息

Test #1:

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

input:

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

output:

221111
211111111111

result:

ok Correct. (2 test cases)

Test #2:

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

input:

200
3
3 1 2
2 3 1
4
2 4 1 3
2 1 4 3
4
1 4 2 3
2 1 3 4
5
4 3 2 1 5
2 4 5 3 1
5
2 1 5 4 3
5 2 4 1 3
4
4 3 1 2
1 2 4 3
3
1 2 3
3 1 2
4
1 4 2 3
2 1 4 3
4
1 3 2 4
1 4 3 2
3
3 2 1
1 3 2
3
2 3 1
1 3 2
4
1 4 3 2
3 1 2 4
3
1 2 3
1 3 2
3
3 2 1
2 3 1
5
5 1 3 2 4
2 4 5 1 3
4
4 3 1 2
1 4 3 2
4
1 3 4 2
2 4 3 1
3
...

output:

122111
121111111111
122211111111
12122121111111111111
12212111111111111111
122221111111
122111
121211111111
112121111111
122111
222111
122211111111
121111
211111
11221221221111111111
121211111111
222221211111
221111
111111111111
21221221211111111111
122221211111
221211111111
212121211111
22212111111...

result:

wrong answer On Case#1: After your operations, a[1] = 1 but a[1] = 2. (test case 1)