๐ป Coding Problems Solving/DFS | BFS | Backtracking
[BOJ 16234] ์ธ๊ตฌ์ด๋
[BOJ 16234] ์ธ๊ตฌ์ด๋ 1. ๋ฌธ์ : https://www.acmicpc.net/problem/1103 2. ํ์ด list์ ๋
ธ๋๋ฅผ ๋ฃ์ด์ ๊ทธ ๋
ธ๋๋ง ๊ฐ์ ๋ณ๊ฒฝํด์ฃผ๋ ๋ฐฉ๋ฒ์ด ์์๋ค. 3. ์ฝ๋ package baekjoon; import java.util.*; public class Main { static int n, l, r; static int[][] board; static boolean[][] visited; static int[] dx = {0, 1, 0, -1}; static int[] dy = {1, 0, -1, 0}; static ArrayList list; //์ธ๊ตฌ ์ด๋์ด ํ์ํ ๋
ธ๋ ๋ฆฌ์คํธ public static void main(String[] args) { Scanner ..
2023. 8. 17. 21:05
์ต๊ทผ๋๊ธ