[SWEA] 1873. 상호의 배틀필드
import java.util.Scanner; public class Solution { static int T, H, W, x, y, d; static char[][] map; static int[][] dir = {{0,0}, {0,1}, {0,-1}, {1,0}, {-1,0}}; // 동서남북 public static void main(String[] args) { Scanner sc = new Scanner(System.in); T = sc.nextInt(); for(int tc=1; tc