diff --git "a/khj20006/202502/03 BOJ G2 \354\272\224\353\224\224\354\272\224\353\224\224.md" "b/khj20006/202502/03 BOJ G2 \354\272\224\353\224\224\354\272\224\353\224\224.md" new file mode 100644 index 00000000..06953065 --- /dev/null +++ "b/khj20006/202502/03 BOJ G2 \354\272\224\353\224\224\354\272\224\353\224\224.md" @@ -0,0 +1,62 @@ +```java + +import java.util.*; +import java.io.*; +import java.math.BigInteger; + +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 + + + public static void main(String[] args) throws Exception { + + nextLine(); + long M = nextInt(); + int N = nextInt(); + Integer[] A = new Integer[N]; + for(int i=0;i= cnt * diff) { + M -= cnt*diff; + } + else { + for(int j=0;j