题目中 "The cows are standing in the same order as they are numbered," 是之前这样排队还是始终这样排队?
如果是始终这样排队那下面这组数据可以wa掉许多做法
输入
5 1 1 1 5 10 2 3 20
输出
-1