int temp = Math.abs(pre[0]-i)+Math.abs(pre[1]-j); 大佬这个距离不是求两点距离么