From 7d1bdd4b3aa0eb7199c90fd4f8d7e5a24b88961d Mon Sep 17 00:00:00 2001 From: LiiNi-coder <97495437+LiiNi-coder@users.noreply.github.com> Date: Fri, 10 Oct 2025 23:47:20 +0900 Subject: [PATCH] =?UTF-8?q?[20251010]=20BOJ=20/=20G4=20/=20=EC=88=98?= =?UTF-8?q?=EB=8F=84=EB=B0=B0=EA=B4=80=EA=B3=B5=EC=82=AC=20/=20=EC=9D=B4?= =?UTF-8?q?=EC=9D=B8=ED=9D=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...60\352\264\200\352\263\265\354\202\254.md" | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 "LiiNi-coder/202510/10 BOJ \354\210\230\353\217\204\353\260\260\352\264\200\352\263\265\354\202\254.md" diff --git "a/LiiNi-coder/202510/10 BOJ \354\210\230\353\217\204\353\260\260\352\264\200\352\263\265\354\202\254.md" "b/LiiNi-coder/202510/10 BOJ \354\210\230\353\217\204\353\260\260\352\264\200\352\263\265\354\202\254.md" new file mode 100644 index 00000000..6ae422c6 --- /dev/null +++ "b/LiiNi-coder/202510/10 BOJ \354\210\230\353\217\204\353\260\260\352\264\200\352\263\265\354\202\254.md" @@ -0,0 +1,35 @@ +```java +import java.io.*; +import java.util.*; + +public class Main { + public static void main(String[] args)throws IOException { + BufferedReader br= new BufferedReader(new InputStreamReader(System.in)); + StringTokenizer st= new StringTokenizer(br.readLine()); + int D=Integer.parseInt(st.nextToken()); + int P=Integer.parseInt(st.nextToken()); + int[][] pipe = new int[P][2]; + for(int i=0; i
=l; j--){ + if(dp[j-l]<=0){ + continue; + } + dp[j] = Math.max(dp[j], Math.min(dp[j-l], c)); + } + } + System.out.println(dp[D]); + } +} + +```