728x90
https://school.programmers.co.kr/learn/courses/30/lessons/120819
📝 나의 풀이
using System;
public class Solution {
public int[] solution(int money) {
int[] answer = new int [2];
answer[0]=money/5500;
answer[1]=money-(5500*(money/5500));
return answer;
}
}
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 |