diff --git "a/khj20006/202502/06 BOJ G2 \354\247\221\355\225\251\354\235\230 \352\260\234\354\210\230.md" "b/khj20006/202502/06 BOJ G2 \354\247\221\355\225\251\354\235\230 \352\260\234\354\210\230.md" new file mode 100644 index 00000000..c3d29c20 --- /dev/null +++ "b/khj20006/202502/06 BOJ G2 \354\247\221\355\225\251\354\235\230 \352\260\234\354\210\230.md" @@ -0,0 +1,74 @@ +```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 int[] dp; + static int[] cnt; + static int T, A, S, B; + static int mod = 1000000; + + + public static void main(String[] args) throws Exception { + + ready(); + solve(); + + bwEnd(); + } + + static void ready() throws Exception{ + + nextLine(); + T = nextInt(); + A = nextInt(); + S = nextInt(); + B = nextInt(); + dp = new int[A+1]; + cnt = new int[201]; + + nextLine(); + for(int i=0;i