Description
Input
Output
Sample Input
6 1 2 1 2 4 1 1 3 1 3 5 1 3 6 1
Sample Output
3
FZU 2195 检查站点
原文:http://www.cnblogs.com/stepping/p/5765941.html