From 59e4adcbeeee2cfe1d531628e1c51043459f0845 Mon Sep 17 00:00:00 2001 From: Jinyeong Seol Date: Wed, 2 Apr 2025 02:25:09 +0900 Subject: [PATCH] =?UTF-8?q?[20250402]=20BOJ=20/=20G1=20/=20=20=EC=99=B8?= =?UTF-8?q?=ED=8C=90=EC=9B=90=20=EC=88=9C=ED=9A=8C=20/=20=EC=84=A4?= =?UTF-8?q?=EC=A7=84=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...0\354\233\220 \354\210\234\355\232\214.md" | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 "Seol-JY/202504/02 BOJ G1 \354\231\270\355\214\220\354\233\220 \354\210\234\355\232\214.md" diff --git "a/Seol-JY/202504/02 BOJ G1 \354\231\270\355\214\220\354\233\220 \354\210\234\355\232\214.md" "b/Seol-JY/202504/02 BOJ G1 \354\231\270\355\214\220\354\233\220 \354\210\234\355\232\214.md" new file mode 100644 index 00000000..9dc679a5 --- /dev/null +++ "b/Seol-JY/202504/02 BOJ G1 \354\231\270\355\214\220\354\233\220 \354\210\234\355\232\214.md" @@ -0,0 +1,53 @@ +```java +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.util.*; + +public class Main { + static int N; + static int[][] map, dp; + static final int MAX_VALUE = 16_000_001; + + public static void main(String[] args) throws IOException { + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + StringTokenizer st; + + N = Integer.parseInt(br.readLine()); + map = new int[N][N]; + dp = new int[N][(1<