这篇题解是来搞笑的吗...
似乎已经被评论区大佬 hack\text{hack}hack 了?
input:3 1 2 3 4 4 5 6 7 7 8 9 10 0 output:-1 ans:0
而且还加了防作弊,代码难看的一批。