样例1: 5 8 -8 1 1 -1 10 2 0 3 4 7 1 8 8 2 16 样例2: 6 6 0 1 1 2 3 10 2 5 100 3 1 1000 3 5 10000 4 5 100000
样例1: 0 12 0 0 8 样例2: 0 1000 1010 0 1010 1000