From 79b541432cda0b36234686e43bc5a19e99acf112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=8B=A0=EC=A7=80?= <101992179+ksinji@users.noreply.github.com> Date: Sun, 12 Oct 2025 18:57:08 +0900 Subject: [PATCH] =?UTF-8?q?[20251012]=20PGM=20/=20LV2=20/=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=EA=B0=9C=EB=B0=9C=20/=20=EA=B0=95=EC=8B=A0=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...60\353\212\245\352\260\234\353\260\234.md" | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 "ksinji/202510/12 PGM \352\270\260\353\212\245\352\260\234\353\260\234.md" diff --git "a/ksinji/202510/12 PGM \352\270\260\353\212\245\352\260\234\353\260\234.md" "b/ksinji/202510/12 PGM \352\270\260\353\212\245\352\260\234\353\260\234.md" new file mode 100644 index 00000000..6f64b2d0 --- /dev/null +++ "b/ksinji/202510/12 PGM \352\270\260\353\212\245\352\260\234\353\260\234.md" @@ -0,0 +1,41 @@ +```java +import java.util.*; + +class Solution { + public int[] solution(int[] progresses, int[] speeds) { + int[] answer = {}; + List answerList = new ArrayList(); + int[] remainDays = new int[progresses.length]; + + for (int i=0; i days){ + answerList.add(cnt); + cnt = 0; + days = remainDays[i]; + } + cnt++; + } + + answerList.add(cnt); + answer = new int[answerList.size()]; + + for (int i=0; i