공배수

Psj·2024년 12월 18일
0

코딩테스트

목록 보기
10/30

내 풀이

class Solution {
    public int solution(int number, int n, int m) {
        int answer = number%n == 0 && number%m == 0 ? 1 : 0;
        return answer;
    }
}
profile
Software Developer

0개의 댓글

관련 채용 정보