최대공약수2 백준 1850 ▶ 1850번 문제 - 최대공약수 ▶ 풀이방법 ++ 9613번 문제와 비슷( https://shinny.tistory.com/154 ) import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); StringTokenizer st = new StringTokenizer(br.readLine()); .. 2022. 3. 31. 백준 9613 ▶ 9613문제 - GCD합 ▶ 풀이방법 import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int count = Integer.parseInt(br.readLine()); for(int i = 0 ; i < count; i++) { StringTokenizer st = new String.. 2022. 3. 30. 이전 1 다음