QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#166651#1282. NecklacewaifuSenpai#WA 4ms11840kbC++173.9kb2023-09-06 16:13:322023-09-06 16:13:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 4ms
memory: 11840kb

input:

4
4
1 1 1 1
1 2 3 4
4
1 1 2 2
1 2 3 4
8
2 6 5 4 3 1 7 7
-1 4 -1 2 10 -1 3 0
6
5 5 3 3 4 6
5 8 0 -1 -2 -7

output:

-1
4
1 2 3 4 
5
2 4 5 7 8 
4
1 2 3 4 

result:

wrong answer case #2:, adjacent gems have the same color