diff --git "a/lkhyun/202509/25 BOJ G1 \355\225\240 \354\235\274 \354\240\225\355\225\230\352\270\260 1.md" "b/lkhyun/202509/25 BOJ G1 \355\225\240 \354\235\274 \354\240\225\355\225\230\352\270\260 1.md" new file mode 100644 index 00000000..2e66d7d8 --- /dev/null +++ "b/lkhyun/202509/25 BOJ G1 \355\225\240 \354\235\274 \354\240\225\355\225\230\352\270\260 1.md" @@ -0,0 +1,49 @@ +```java +import java.util.*; +import java.io.*; + +public class Main{ + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + static StringTokenizer st; + static StringBuilder sb = new StringBuilder(); + static int N; + static int[][] works; + static int[][] dp; //dp[i][j] = i번째 사람까지 고려하고 j의 일 상태일때 최소비용 + + public static void main(String[] args) throws Exception { + N = Integer.parseInt(br.readLine()); + works = new int[N+1][N+1]; + + for (int i = 1; i <= N; i++) { + st = new StringTokenizer(br.readLine()); + for (int j = 1; j <= N; j++) { + works[i][j] = Integer.parseInt(st.nextToken()); + } + } + + dp = new int[N+1][1<