๐ป Coding Problems Solving/Dynamic Programming
[BOJ 1103] ๊ฒ์
[BOJ 1103] ๊ฒ์ 1. ๋ฌธ์ : https://www.acmicpc.net/problem/1103 2. ํ์ด dfs + dp ๋ฌธ์ 3. ์ฝ๋ package baekjoon; import java.util.*; public class Main { static int N, M; static int[][] map; static boolean[][] visit; static int[][] dp; static int[] dx = {-1, 1, 0, 0}, dy = {0, 0, -1, 1}; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); M = sc.nextInt(); map = ne..
2023. 8. 7. 21:11
์ต๊ทผ๋๊ธ