728x90
https://school.programmers.co.kr/learn/courses/30/lessons/120830
📝 나의 풀이
using System;
public class Solution {
public int solution(int n, int k) {
return n * 12000 + (k - n / 10) * 2000;
}
}
728x90
'코딩테스트 > [C#] 프로그래머스' 카테고리의 다른 글
[프로그래머스 | Lv.0] 짝수 홀수 개수 (0) | 2023.08.13 |
---|---|
[프로그래머스 | Lv.0] 아이스아메리카노 (0) | 2023.08.13 |
[프로그래머스 | Lv.0] 배열의 평균 값 (0) | 2023.08.13 |
[프로그래머스 | Lv.0] 두 수의 합 (0) | 2023.08.13 |
[프로그래머스 | Lv.0] 두 수의 나눗셈 (0) | 2023.08.13 |