Home => ProblemSet => 300-11:欧拉回路
Problem1417--300-11:欧拉回路

1417: 300-11:欧拉回路

Time Limit: 1 Sec  Memory Limit: 128 MB  Submit: 0  Solved: 0
[ Submit ] [ Status ] [ Creator: ][ 参考程序 ]

Description

Input

第一行一个正整数 n,表示输入序列的长度。
第二行有 n 个整数 a1,a2,a3...an。

Output

输出一行答案。

Sample Input Copy

7
5 6 7 1 2 3 3

Sample Output Copy

13

HINT

Source/Category