본문 바로가기
(문제풀이)

프로그래머스(java) : 양꼬치

by cogito-new 2022. 10. 10.

 

class Solution {
    public int solution(int n, int k) {
        int answer = 0;
        int free= 0;
        
        free = k - n/10;
        answer = n*12000 + free*2000;
    
        
        
        return answer;
    }
}

 

반응형