第一行一个整数 n 。第二行 n 个整数,表示 。
一行一个整数 ans ,表示答案。
3 1 2 3
6
我们 ,此时 。
对于所有的数据,保证 。样例:想不到吧,你的做法至少能过样例!
样例:想不到吧,你的做法至少能过样例!