广搜版本 import java.util.*; public class Solution { private final int dx[] = {-1, 1, 0 ,0}; private final int dy[] = {0, 0, -1, ...