4 1 1 0 0 15 16 10 20
3 1 2 4
对于100%的数据N<=10000, 0<=ki<=10^9, 0<=vi<=10^9
2016.1.17新加数据一组 By Nano_ape