package nowcoder; import java.io.BufferedInputStream; import java.util.Arrays; import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; public class Main48 { public static void main(String[] args) { new Solve48().solve(); } } class Solve48{ int row,col; ...