QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#556588#7757. Palm IslandMaMengQiWA 1ms5776kbC++231.2kb2024-09-10 19:31:252024-09-10 19:31:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

122111
211111111111

result:

ok Correct. (2 test cases)

Test #2:

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

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:

221111
121111111111
212121111111
21221211111111111111
21211211111111111111
122221111111
221111
221111111111
122111111111
221111
222111
212121111111
121111
211111
12222221111111111111
221111111111
222221211111
122111
111111111111
21221221211111111111
222221111111
221211111111
222211111111
12212121111...

result:

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