QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#320149#7513. Palindromic BeadsZhangYiDeWA 1ms7748kbC++205.0kb2024-02-03 14:10:472024-02-03 14:10:48

详细

Test #1:

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

input:

4
1 1 2 2
1 2
2 3
2 4

output:

3

result:

ok single line: '3'

Test #2:

score: 0
Accepted
time: 0ms
memory: 5644kb

input:

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

output:

4

result:

ok single line: '4'

Test #3:

score: 0
Accepted
time: 1ms
memory: 5704kb

input:

6
1 1 2 2 3 3
1 2
2 3
3 4
4 5
5 6

output:

2

result:

ok single line: '2'

Test #4:

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

input:

6
1 2 3 4 5 6
1 2
2 3
3 4
4 5
5 6

output:

0

result:

wrong answer 1st lines differ - expected: '1', found: '0'