코테연습/프로그래머스

코딩테스트 입문 > 아이스 아메리카노

메각이 2023. 4. 20. 00:46
728x90

 

class Solution {
    public int[] solution(int money) {
        int[] answer = new int[2];
        
        int icedCoffee = 5500;
        
        answer[0] = money/icedCoffee;
        answer[1] = money%icedCoffee;
        
        return answer;
    }
}

 

728x90