From c95be1cc501f0e7f3f0fa6b8a17f86653d6d7847 Mon Sep 17 00:00:00 2001 From: oncsr Date: Thu, 6 Feb 2025 16:03:46 +0900 Subject: [PATCH] =?UTF-8?q?[20250206]=20BOJ=20/=20=EA=B3=A8=EB=93=9C2=20/?= =?UTF-8?q?=20=EC=A7=91=ED=95=A9=EC=9D=98=20=EA=B0=9C=EC=88=98=20/=20?= =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=A4=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...1\354\235\230 \352\260\234\354\210\230.md" | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 "khj20006/202502/06 BOJ G2 \354\247\221\355\225\251\354\235\230 \352\260\234\354\210\230.md" 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