class Solution {
public int[] solution(int money) {
int[] answer = new int[2];
answer[0]=money/5500;
answer[1]=money%5500;
return answer;
}
}
class Solution {
public int[] solution(int money) {
return new int[] { money / 5500, money % 5500 };
}
}'코딩테스트 > JAVA 코테' 카테고리의 다른 글
| [백준] [BFS] [Union-Find] 2606.바이러스 (0) | 2023.02.24 |
|---|---|
| [JAVA] [백준] [실버4] 1244.스위치 켜고 끄기 (0) | 2023.02.08 |
| 머쓱이보다 키큰 사람 (0) | 2023.02.07 |
| 특정 문자 제거하기 (0) | 2023.02.07 |
| [Java] [프로그래머스] [Level 0] 문자반복 출력하기 (0) | 2023.02.06 |