From 0f85284f785dfbac326ade45725c5c23b62832d0 Mon Sep 17 00:00:00 2001 From: LiiNi-coder <97495437+LiiNi-coder@users.noreply.github.com> Date: Wed, 29 Oct 2025 23:44:47 +0900 Subject: [PATCH] =?UTF-8?q?[20251029]=20PGM=20/=20LV2=20/=20=ED=96=89?= =?UTF-8?q?=EB=A0=AC=EC=9D=98=20=EA=B3=B1=20/=20=EC=9D=B4=EC=9D=B8?= =?UTF-8?q?=ED=9D=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...4\354\235\230 \352\263\261\354\205\210.md" | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 "LiiNi-coder/202510/29 PGM \355\226\211\353\240\254\354\235\230 \352\263\261\354\205\210.md" diff --git "a/LiiNi-coder/202510/29 PGM \355\226\211\353\240\254\354\235\230 \352\263\261\354\205\210.md" "b/LiiNi-coder/202510/29 PGM \355\226\211\353\240\254\354\235\230 \352\263\261\354\205\210.md" new file mode 100644 index 00000000..757c0a82 --- /dev/null +++ "b/LiiNi-coder/202510/29 PGM \355\226\211\353\240\254\354\235\230 \352\263\261\354\205\210.md" @@ -0,0 +1,24 @@ +```java +import java.util.*; + +class Solution { + public int[][] solution(int[][] arr1, int[][] arr2) { + int rows = arr1.length; + int cols = arr2[0].length; + int common = arr2.length; + int[][] answer = new int[rows][cols]; + + for(int i = 0; i < rows; i++){ + for(int j = 0; j < cols; j++){ + int sum = 0; + for(int k = 0; k < common; k++){ + sum += arr1[i][k] * arr2[k][j]; + } + answer[i][j] = sum; + } + } + + return answer; + } +} +```