diff --git "a/lkhyun/202502/04 BOJ \352\263\250\353\223\2344 \355\214\214\354\235\264\355\224\204 \354\230\256\352\270\260\352\270\2602.md" "b/lkhyun/202502/04 BOJ \352\263\250\353\223\2344 \355\214\214\354\235\264\355\224\204 \354\230\256\352\270\260\352\270\2602.md" new file mode 100644 index 00000000..5a3922fb --- /dev/null +++ "b/lkhyun/202502/04 BOJ \352\263\250\353\223\2344 \355\214\214\354\235\264\355\224\204 \354\230\256\352\270\260\352\270\2602.md" @@ -0,0 +1,76 @@ +```java +import java.util.Scanner; + +public class Main { + public static void main(String[] args) throws Exception { + Scanner sc = new Scanner(System.in); + int N = sc.nextInt(); + int[][] matrix = new int[N][N]; + long[][][] dp = new long[3][N][N]; // 0:가로 1:세로 2:대각선선 + for (int i = 0; i < N; i++) { + for (int j = 0; j < N; j++) { + matrix[i][j] = sc.nextInt(); + } + } + for(int i=1;i