diff --git "a/khj20006/202502/13 BOJ G5 \354\213\234\354\262\240\354\235\264\352\260\200 \354\202\254\353\236\221\355\225\234 GCD.md" "b/khj20006/202502/13 BOJ G5 \354\213\234\354\262\240\354\235\264\352\260\200 \354\202\254\353\236\221\355\225\234 GCD.md" new file mode 100644 index 00000000..0d7f7fc4 --- /dev/null +++ "b/khj20006/202502/13 BOJ G5 \354\213\234\354\262\240\354\235\264\352\260\200 \354\202\254\353\236\221\355\225\234 GCD.md" @@ -0,0 +1,66 @@ +```java + +import java.util.*; +import java.io.*; + + +class Main { + + // IO field + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + static StringTokenizer st; + + static void nextLine() throws Exception {st = new StringTokenizer(br.readLine());} + static int nextInt() {return Integer.parseInt(st.nextToken());} + static long nextLong() {return Long.parseLong(st.nextToken());} + static void bwEnd() throws Exception {bw.flush();bw.close();} + + // Additional field + static long[] A; + static int N; + + public static void main(String[] args) throws Exception { + + ready(); + solve(); + + bwEnd(); + } + + static void ready() throws Exception{ + + N = Integer.parseInt(br.readLine()); + A = new long[N]; + nextLine(); + for(int i=0;i