728x90 최대공약수1 최대 공약수 public static int gcd(int a, int b) { while(b!=0){ int r = a%b; a= b; b= r; } return a; } 2021. 9. 5. 이전 1 다음 728x90