QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#570179#7757. Palm IslandDiaosi#WA 1ms3712kbC++17509b2024-09-17 14:30:512024-09-17 14:30:55

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3712kb

input:

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

output:

221111111
2111111111111111

result:

ok Correct. (2 test cases)

Test #2:

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

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:

121211111
2221121121111111
2221111111111111
2222122211121111111111111
2212111211121111111111111
2221221121111111
121211111
2221121111111111
1221111111111111
221111111
211111111
2221221111111111
121111111
121111111
1222112211211111111111111
2221211111111111
2121111111111111
121211111
1111111111111111...

result:

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