Skip to content

Commit 1a02e1d

Browse files
committed
[level 2] Title: 행렬의 곱셈, Time: 4.54 ms, Memory: 80.5 MB -BaekjoonHub
1 parent 6818c6a commit 1a02e1d

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

프로그래머스/2/12949. 행렬의 곱셈/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# [level 2] 행렬의 곱셈 - 12949
22

3-
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/12949)
3+
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/12949?language=java)
44

55
### 성능 요약
66

7-
메모리: 11 MB, 시간: 180.21 ms
7+
메모리: 80.5 MB, 시간: 4.54 ms
88

99
### 구분
1010

@@ -16,7 +16,7 @@
1616

1717
### 제출 일자
1818

19-
2024년 10월 03일 23:44:08
19+
2026년 06월 26일 18:47:08
2020

2121
### 문제 설명
2222

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class Solution {
2+
public int[][] solution(int[][] arr1, int[][] arr2) {
3+
int[][] ans = new int[arr1.length][arr2[0].length];
4+
5+
for (int i = 0; i < arr1.length; i++) {
6+
for (int j = 0; j < arr2[0].length; j++) {
7+
for (int k = 0; k < arr1[0].length; k++) {
8+
ans[i][j] += arr1[i][k] * arr2[k][j];
9+
}
10+
}
11+
}
12+
return ans;
13+
}
14+
}

0 commit comments

Comments
 (0)