반응형
https://school.programmers.co.kr/learn/courses/30/lessons/120830
class Solution {
public int solution(int n, int k) {
int answer = 0;
answer = n * 12000 + (k - n/10) * 2000;
return answer;
}
}
반응형
'Portpolio > codingtest' 카테고리의 다른 글
프로그래머스 Lv0. 제곱수 판별하기 (0) | 2025.01.08 |
---|---|
프로그래머스 Lv0. 배열 뒤집기 (0) | 2025.01.08 |
프로그래머스 lv0. 문자열 돌리기 (1) | 2024.12.16 |
프로그래머스 lv0. 문자열 붙여서 출력하기 (0) | 2024.12.16 |
프로그래머스 lv0. 덧셈식 출력하기 (0) | 2024.12.16 |
댓글