[백준] 23289. 온풍기 안녕!
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.StringTokenizer; public class Main { static int R, C, K, W; static int[][] map; static ArrayList[][] wall; //dir = {{0,0}, {0,1}, {0,-1},{-1,0},{1,0}}; static int[][][] dir = { {{0,0},{0,0},{0,0}}, {{-1,1},{0,1},{1,1}}, {{-1,-1},{0,-1}..
[백준] 23288. 주사위 굴리기 2
https://www.acmicpc.net/problem/23288 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { static int N, M, K, d, x, y, B, C; static int[][] map, dir = { { 0, 1 }, { 1, 0 }, { 0, -1 }, { -1, 0 } } // 동남서북 , dice = { { 0, 2, 0, 0 }, { 4, 1, 3, 6 }, { 0, 5, 0, 0 }, { 0, 6, 0, 0 } }; static boolean[][] vis..