Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 온프레미스
- SaaS
- algorithm
- 최대공배수
- INT
- 홀수
- parseInt
- 데이터타입
- java
- 프로젝트 생성
- 유클리드 호제법
- valueof
- Python
- 자료형
- 짝수
- 11004
- 최대공약수
- 웹 서버
- 프로그래머스
- 백준
- IaaS
- 리스트
- 2진수
- IntelliJ
- 알고리즘
- aws
- 11652
- 문자열 숫자 변환
- level1
- PaaS
Archives
- Today
- Total
Ga0Lee
[알고리즘] 프로그래머스(Level1) - 행렬의 덧셈(Java) 본문
class Solution {
public int[][] solution(int[][] arr1, int[][] arr2) {
int[][] answer = new int[arr1.length][arr1[0].length];
for(int i=0; i<arr1.length; i++)
{
for(int j=0; j<arr1[0].length; j++)
{
answer[i][j] = arr1[i][j] + arr2[i][j];
}
}
return answer;
}
}
'Algorithm' 카테고리의 다른 글
[알고리즘] 프로그래머스(Level1) - 평균 구하기(Java) (0) | 2022.06.10 |
---|---|
[알고리즘] 프로그래머스(Level1) - 핸드폰 번호 가리기(Java) (0) | 2022.06.09 |
[알고리즘] 프로그래머스(Level1) - 콜라츠 추측(Java)/int형 오버플로우 (0) | 2022.06.07 |
[알고리즘] 프로그래머스(Level1) - x만큼 간격이 있는 n개의 숫자(Java) (0) | 2022.06.06 |
[알고리즘] 프로그래머스(Level 1) - 직사각형 별찍기(Java) (0) | 2022.06.05 |