https://school.programmers.co.kr/learn/courses/30/lessons/12949
프로그래머스
코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.
programmers.co.kr
#include <string>
#include <vector>
using namespace std;
vector<vector<int>> solution(vector<vector<int>> arr1, vector<vector<int>> arr2)
{
vector<vector<int>> answer;
for (int i = 0; i < arr1.size(); i++) //arr1
{
vector<int> tmp;
for (int j = 0; j < arr2[0].size(); j++) //arr2
{
int value = 0;
for (int k = 0; k < arr1[0].size(); k++)
value += arr1[i][k] * arr2[k][j];
tmp.push_back(value);
}
answer.push_back(tmp);
}
return answer;
}
GitHub - developeSHG/Algorithm-Baekjoon_Programmers: 백준 and 프로그래머스 소스코드
백준 and 프로그래머스 소스코드. Contribute to developeSHG/Algorithm-Baekjoon_Programmers development by creating an account on GitHub.
github.com
'Coding Test > Programmers' 카테고리의 다른 글
[Programmers] (해시) Lv 2. 의상 (0) | 2023.06.15 |
---|---|
[Programmers] (2018 KAKAO BLIND RECRUITMENT) Lv 2. [1차] 캐시 (0) | 2023.06.15 |
[Programmers] (월간 코드 챌린지 시즌3) Lv 2. n^2 배열 자르기 (0) | 2023.06.13 |
[Programmers] Lv 2. 연속 부분 수열 합의 개수 (0) | 2023.06.12 |
[Programmers] (정렬) Lv 2. H-Index (0) | 2023.06.11 |
댓글