✏️ 문제풀이/프로그래머스

[프로그래머스/Java] Lv0. 아이스 아메리카노

bono-hye 2025. 1. 23. 22:27

| 문제

https://school.programmers.co.kr/learn/courses/30/lessons/120819

 

프로그래머스

SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프

programmers.co.kr

 

| 풀이

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