diff --git "a/khj20006/202503/14 BOJ G4 \353\221\220 \353\214\200\355\221\234 \354\236\220\354\227\260\354\210\230.md" "b/khj20006/202503/14 BOJ G4 \353\221\220 \353\214\200\355\221\234 \354\236\220\354\227\260\354\210\230.md" new file mode 100644 index 00000000..83e72d52 --- /dev/null +++ "b/khj20006/202503/14 BOJ G4 \353\221\220 \353\214\200\355\221\234 \354\236\220\354\227\260\354\210\230.md" @@ -0,0 +1,72 @@ +```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 = new StringTokenizer(""); + + static void nextLine() throws Exception {st = new StringTokenizer(br.readLine());} + static int nextInt() throws Exception { + if(!st.hasMoreTokens()) nextLine(); + return Integer.parseInt(st.nextToken()); + } + static long nextLong() throws Exception { + if(!st.hasMoreTokens()) nextLine(); + return Long.parseLong(st.nextToken()); + } + static void bwEnd() throws Exception {bw.flush();bw.close();} + + // Additional field + + static int N; + static long[] C; + + public static void main(String[] args) throws Exception { + + ready(); + solve(); + + bwEnd(); + + } + + static void ready() throws Exception{ + + N = nextInt(); + C = new long[10001]; + for(int i=0;i