4 1 2 5 4
4
数据范围 30%的测试数据, n<=1000. 100%的测试数据, n<=1000000. ai>=0, 保证ai在longint/int范围内, ai的总和在int64/long long范围内.