Problem1866--龙虎斗

1866: 龙虎斗

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

Input

Sample Input Copy

样例 1
6
2 3 2 3 2 3
4 6 5 2

样例 2
6
1 1 1 1 1 16 5 4 1 1

Sample Output Copy

样例 1
2

样例 2
1

HINT







Source/Category