如果是最后一个不能够满足,不能直接输出 0,要输出 -1。
0
-1
参见 Hack 数据(引用自:Link)
Sample input:
3 3 3 3 3 2 1 3 1 1 3 1 1 3
Sample output:
-1 3
Wrong output: