傻逼数据当 - 时可能 x=yx=yx=y
所以你这么写就会挂:
mp[x] = mp[y + n]; mp[x + n] = mp[y];
hack数据:
input 1 1 1 1 1 1 output 0