import java.util.*; /** * @ClassName Mainn * @Description TODO * @Author * @Date 2020/9/1 22:03 * @Version 1.0 */ /* 1 4 4 .... .... .... .... 3 3 .O. /|\ ./\ 0 0 1 1 */ public class Mainn { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T = Integer.parseInt(sc.nextLine()); while (T--!=0){ String[] ss = sc.nextLine().split(" "); int w = Integer.parseInt(ss[0]); int h = Integer.parseInt(ss[1]); int cnt = 0; char[][] pin = new char[h][w]; for (int i = 0; i < h; i++) { char[] tmp = sc.nextLine().toCharArray(); for (int j = 0; j < tmp.length; j++) { pin[i][j] = tmp[j]; } }