QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#623539#7513. Palindromic Beads415411#ML 7ms55872kbC++143.1kb2024-10-09 12:55:512024-10-09 12:55:53

詳細信息

Test #1:

score: 100
Accepted
time: 7ms
memory: 55872kb

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: 3ms
memory: 53612kb

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: 7ms
memory: 55656kb

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
Memory Limit Exceeded

input:

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

output:


result: