JAVA_LeetCode 1952_Three Divisors 풀이 class Solution { public boolean isThree(int n) { int cnt = 0; for(int i = 1; i <= n; i++){ if(n % i ==0) cnt++; } return cnt == 3; } } * 출처 https://leetcode.com/problems/three-divisors/...
JAVA_LeetCode 1952_Three Divisors에 대한 요약내용입니다.
자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.