From ec5fb7fb7dcc980f696eae6a22c293fc860eeaf0 Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Fri, 11 Jul 2025 17:15:55 +0900 Subject: [PATCH 01/10] =?UTF-8?q?Rename=201=20BOJ=20G4=20=EC=88=98=20?= =?UTF-8?q?=EB=82=98=EB=88=84=EA=B8=B0=20=EA=B2=8C=EC=9E=84.md=20to=2001?= =?UTF-8?q?=20BOJ=20G4=20=EC=88=98=20=EB=82=98=EB=88=84=EA=B8=B0=20?= =?UTF-8?q?=EA=B2=8C=EC=9E=84.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...3\202\230\353\210\204\352\270\260 \352\262\214\354\236\204.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "lkhyun/202507/1 BOJ G4 \354\210\230 \353\202\230\353\210\204\352\270\260 \352\262\214\354\236\204.md" => "lkhyun/202507/01 BOJ G4 \354\210\230 \353\202\230\353\210\204\352\270\260 \352\262\214\354\236\204.md" (100%) diff --git "a/lkhyun/202507/1 BOJ G4 \354\210\230 \353\202\230\353\210\204\352\270\260 \352\262\214\354\236\204.md" "b/lkhyun/202507/01 BOJ G4 \354\210\230 \353\202\230\353\210\204\352\270\260 \352\262\214\354\236\204.md" similarity index 100% rename from "lkhyun/202507/1 BOJ G4 \354\210\230 \353\202\230\353\210\204\352\270\260 \352\262\214\354\236\204.md" rename to "lkhyun/202507/01 BOJ G4 \354\210\230 \353\202\230\353\210\204\352\270\260 \352\262\214\354\236\204.md" From db710abdc4db789f1f862211dd8a0ab113465629 Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Fri, 11 Jul 2025 17:16:08 +0900 Subject: [PATCH 02/10] =?UTF-8?q?Rename=202=20BOJ=20G3=20=EC=86=8C?= =?UTF-8?q?=EC=88=98=EC=9D=98=20=EC=97=B0=EC=86=8D=ED=95=A9.md=20to=2002?= =?UTF-8?q?=20BOJ=20G3=20=EC=86=8C=EC=88=98=EC=9D=98=20=EC=97=B0=EC=86=8D?= =?UTF-8?q?=ED=95=A9.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...4\210\230\354\235\230 \354\227\260\354\206\215\355\225\251.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "lkhyun/202507/2 BOJ G3 \354\206\214\354\210\230\354\235\230 \354\227\260\354\206\215\355\225\251.md" => "lkhyun/202507/02 BOJ G3 \354\206\214\354\210\230\354\235\230 \354\227\260\354\206\215\355\225\251.md" (100%) diff --git "a/lkhyun/202507/2 BOJ G3 \354\206\214\354\210\230\354\235\230 \354\227\260\354\206\215\355\225\251.md" "b/lkhyun/202507/02 BOJ G3 \354\206\214\354\210\230\354\235\230 \354\227\260\354\206\215\355\225\251.md" similarity index 100% rename from "lkhyun/202507/2 BOJ G3 \354\206\214\354\210\230\354\235\230 \354\227\260\354\206\215\355\225\251.md" rename to "lkhyun/202507/02 BOJ G3 \354\206\214\354\210\230\354\235\230 \354\227\260\354\206\215\355\225\251.md" From 547805dea0aee8e315b31830ec52c15974bff24a Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Fri, 11 Jul 2025 17:16:20 +0900 Subject: [PATCH 03/10] =?UTF-8?q?Rename=203=20BOJ=20G3=20=EB=91=90=20?= =?UTF-8?q?=EB=B0=B0=EC=97=B4=EC=9D=98=20=ED=95=A9.md=20to=2003=20BOJ=20G3?= =?UTF-8?q?=20=EB=91=90=20=EB=B0=B0=EC=97=B4=EC=9D=98=20=ED=95=A9.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\221\220 \353\260\260\354\227\264\354\235\230 \355\225\251.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "lkhyun/202507/3 BOJ G3 \353\221\220 \353\260\260\354\227\264\354\235\230 \355\225\251.md" => "lkhyun/202507/03 BOJ G3 \353\221\220 \353\260\260\354\227\264\354\235\230 \355\225\251.md" (100%) diff --git "a/lkhyun/202507/3 BOJ G3 \353\221\220 \353\260\260\354\227\264\354\235\230 \355\225\251.md" "b/lkhyun/202507/03 BOJ G3 \353\221\220 \353\260\260\354\227\264\354\235\230 \355\225\251.md" similarity index 100% rename from "lkhyun/202507/3 BOJ G3 \353\221\220 \353\260\260\354\227\264\354\235\230 \355\225\251.md" rename to "lkhyun/202507/03 BOJ G3 \353\221\220 \353\260\260\354\227\264\354\235\230 \355\225\251.md" From 57d06c7c63126929b3c453ed0ca70d1728bedfd8 Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Fri, 11 Jul 2025 17:16:28 +0900 Subject: [PATCH 04/10] Rename 4 BOJ G3 Dance Dance Revolution.md to 04 BOJ G3 Dance Dance Revolution.md --- ...ce Dance Revolution.md => 04 BOJ G3 Dance Dance Revolution.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lkhyun/202507/{4 BOJ G3 Dance Dance Revolution.md => 04 BOJ G3 Dance Dance Revolution.md} (100%) diff --git a/lkhyun/202507/4 BOJ G3 Dance Dance Revolution.md b/lkhyun/202507/04 BOJ G3 Dance Dance Revolution.md similarity index 100% rename from lkhyun/202507/4 BOJ G3 Dance Dance Revolution.md rename to lkhyun/202507/04 BOJ G3 Dance Dance Revolution.md From 230966fc85b0ad239ea995d4dc861642f0dddc98 Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Fri, 11 Jul 2025 17:16:36 +0900 Subject: [PATCH 05/10] =?UTF-8?q?Rename=205=20BOJ=20G3=20=ED=94=BC?= =?UTF-8?q?=EB=A6=AC=20=EB=B6=80=EB=8A=94=20=EC=82=AC=EB=82=98=EC=9D=B4.md?= =?UTF-8?q?=20to=2005=20BOJ=20G3=20=ED=94=BC=EB=A6=AC=20=EB=B6=80=EB=8A=94?= =?UTF-8?q?=20=EC=82=AC=EB=82=98=EC=9D=B4.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...3\266\200\353\212\224 \354\202\254\353\202\230\354\235\264.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "lkhyun/202507/5 BOJ G3 \355\224\274\353\246\254 \353\266\200\353\212\224 \354\202\254\353\202\230\354\235\264.md" => "lkhyun/202507/05 BOJ G3 \355\224\274\353\246\254 \353\266\200\353\212\224 \354\202\254\353\202\230\354\235\264.md" (100%) diff --git "a/lkhyun/202507/5 BOJ G3 \355\224\274\353\246\254 \353\266\200\353\212\224 \354\202\254\353\202\230\354\235\264.md" "b/lkhyun/202507/05 BOJ G3 \355\224\274\353\246\254 \353\266\200\353\212\224 \354\202\254\353\202\230\354\235\264.md" similarity index 100% rename from "lkhyun/202507/5 BOJ G3 \355\224\274\353\246\254 \353\266\200\353\212\224 \354\202\254\353\202\230\354\235\264.md" rename to "lkhyun/202507/05 BOJ G3 \355\224\274\353\246\254 \353\266\200\353\212\224 \354\202\254\353\202\230\354\235\264.md" From b7c7e2182516e840e85a699be7018a089f99a61c Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Fri, 11 Jul 2025 17:16:44 +0900 Subject: [PATCH 06/10] =?UTF-8?q?Rename=206=20BOJ=20G2=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=EC=A7=91.md=20to=2006=20BOJ=20G2=20=EB=AC=B8=EC=A0=9C?= =?UTF-8?q?=EC=A7=91.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../202507/06 BOJ G2 \353\254\270\354\240\234\354\247\221.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "lkhyun/202507/6 BOJ G2 \353\254\270\354\240\234\354\247\221.md" => "lkhyun/202507/06 BOJ G2 \353\254\270\354\240\234\354\247\221.md" (100%) diff --git "a/lkhyun/202507/6 BOJ G2 \353\254\270\354\240\234\354\247\221.md" "b/lkhyun/202507/06 BOJ G2 \353\254\270\354\240\234\354\247\221.md" similarity index 100% rename from "lkhyun/202507/6 BOJ G2 \353\254\270\354\240\234\354\247\221.md" rename to "lkhyun/202507/06 BOJ G2 \353\254\270\354\240\234\354\247\221.md" From 6c0c807a1d1c8843160a44d31342a6b29ee05d1f Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Fri, 11 Jul 2025 17:16:53 +0900 Subject: [PATCH 07/10] =?UTF-8?q?Rename=207=20BOJ=20G2=201=EC=9D=98=20?= =?UTF-8?q?=EA=B0=9C=EC=88=98=20=EC=84=B8=EA=B8=B0.md=20to=2007=20BOJ=20G2?= =?UTF-8?q?=201=EC=9D=98=20=EA=B0=9C=EC=88=98=20=EC=84=B8=EA=B8=B0.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\235\230 \352\260\234\354\210\230 \354\204\270\352\270\260.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "lkhyun/202507/7 BOJ G2 1\354\235\230 \352\260\234\354\210\230 \354\204\270\352\270\260.md" => "lkhyun/202507/07 BOJ G2 1\354\235\230 \352\260\234\354\210\230 \354\204\270\352\270\260.md" (100%) diff --git "a/lkhyun/202507/7 BOJ G2 1\354\235\230 \352\260\234\354\210\230 \354\204\270\352\270\260.md" "b/lkhyun/202507/07 BOJ G2 1\354\235\230 \352\260\234\354\210\230 \354\204\270\352\270\260.md" similarity index 100% rename from "lkhyun/202507/7 BOJ G2 1\354\235\230 \352\260\234\354\210\230 \354\204\270\352\270\260.md" rename to "lkhyun/202507/07 BOJ G2 1\354\235\230 \352\260\234\354\210\230 \354\204\270\352\270\260.md" From c0f956e9253878b4c2bc013b8af3881a666d75b7 Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Fri, 11 Jul 2025 17:17:00 +0900 Subject: [PATCH 08/10] =?UTF-8?q?Rename=208=20BOJ=20G2=20=EA=B3=B5?= =?UTF-8?q?=ED=95=AD.md=20to=2008=20BOJ=20G2=20=EA=B3=B5=ED=95=AD.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../202507/08 BOJ G2 \352\263\265\355\225\255.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "lkhyun/202507/8 BOJ G2 \352\263\265\355\225\255.md" => "lkhyun/202507/08 BOJ G2 \352\263\265\355\225\255.md" (100%) diff --git "a/lkhyun/202507/8 BOJ G2 \352\263\265\355\225\255.md" "b/lkhyun/202507/08 BOJ G2 \352\263\265\355\225\255.md" similarity index 100% rename from "lkhyun/202507/8 BOJ G2 \352\263\265\355\225\255.md" rename to "lkhyun/202507/08 BOJ G2 \352\263\265\355\225\255.md" From 8e3ca2143ca32574cc41026914560b76c8e417e4 Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Fri, 11 Jul 2025 17:17:07 +0900 Subject: [PATCH 09/10] =?UTF-8?q?Rename=209=20BOJ=20G3=20=EB=B2=BD=20?= =?UTF-8?q?=EB=B6=80=EC=88=98=EA=B3=A0=20=EC=9D=B4=EB=8F=99=ED=95=98?= =?UTF-8?q?=EA=B8=B0.md=20to=2009=20BOJ=20G3=20=EB=B2=BD=20=EB=B6=80?= =?UTF-8?q?=EC=88=98=EA=B3=A0=20=EC=9D=B4=EB=8F=99=ED=95=98=EA=B8=B0.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...2\263\240 \354\235\264\353\217\231\355\225\230\352\270\260.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "lkhyun/202507/9 BOJ G3 \353\262\275 \353\266\200\354\210\230\352\263\240 \354\235\264\353\217\231\355\225\230\352\270\260.md" => "lkhyun/202507/09 BOJ G3 \353\262\275 \353\266\200\354\210\230\352\263\240 \354\235\264\353\217\231\355\225\230\352\270\260.md" (100%) diff --git "a/lkhyun/202507/9 BOJ G3 \353\262\275 \353\266\200\354\210\230\352\263\240 \354\235\264\353\217\231\355\225\230\352\270\260.md" "b/lkhyun/202507/09 BOJ G3 \353\262\275 \353\266\200\354\210\230\352\263\240 \354\235\264\353\217\231\355\225\230\352\270\260.md" similarity index 100% rename from "lkhyun/202507/9 BOJ G3 \353\262\275 \353\266\200\354\210\230\352\263\240 \354\235\264\353\217\231\355\225\230\352\270\260.md" rename to "lkhyun/202507/09 BOJ G3 \353\262\275 \353\266\200\354\210\230\352\263\240 \354\235\264\353\217\231\355\225\230\352\270\260.md" From 109de95532deca6253fff08821fe5c968b841dea Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Fri, 11 Jul 2025 17:18:18 +0900 Subject: [PATCH 10/10] =?UTF-8?q?[20250711]=20BOJ=20/=20G3=20/=20=EA=B3=B5?= =?UTF-8?q?=EC=A3=BC=EB=8B=98=EC=9D=98=20=EC=A0=95=EC=9B=90=20/=20?= =?UTF-8?q?=EC=9D=B4=EA=B0=95=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...0\354\235\230 \354\240\225\354\233\220.md" | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 "lkhyun/202507/11 BOJ G3 \352\263\265\354\243\274\353\213\230\354\235\230 \354\240\225\354\233\220.md" diff --git "a/lkhyun/202507/11 BOJ G3 \352\263\265\354\243\274\353\213\230\354\235\230 \354\240\225\354\233\220.md" "b/lkhyun/202507/11 BOJ G3 \352\263\265\354\243\274\353\213\230\354\235\230 \354\240\225\354\233\220.md" new file mode 100644 index 00000000..4b1ed336 --- /dev/null +++ "b/lkhyun/202507/11 BOJ G3 \352\263\265\354\243\274\353\213\230\354\235\230 \354\240\225\354\233\220.md" @@ -0,0 +1,80 @@ +```java +import java.util.*; +import java.io.*; + +public class Main{ + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + static StringTokenizer st; + static int N; + static List flowers; + static int[] current = {3,1}; + static int[] maxCoverage = new int[2]; + static int cnt = 0; + static boolean isCover; + + public static void main(String[] args) throws Exception{ + N = Integer.parseInt(br.readLine()); + flowers = new ArrayList<>(); + + for (int i = 0; i < N; i++) { + st = new StringTokenizer(br.readLine()); + int startMonth = Integer.parseInt(st.nextToken()); + int startDay = Integer.parseInt(st.nextToken()); + int endMonth = Integer.parseInt(st.nextToken()); + int endDay = Integer.parseInt(st.nextToken()); + flowers.add(new int[]{startMonth, startDay, endMonth, endDay}); + } + + flowers.sort((a,b) -> { + if(a[0] == b[0]){ + if(a[1] == b[1]){ + if(a[2] == b[2]){ + return Integer.compare(a[3], b[3]); + }else{ + return Integer.compare(a[2], b[2]); + } + }else{ + return Integer.compare(a[1], b[1]); + } + }else{ + return Integer.compare(a[0], b[0]); + } + }); + + for (int[] flower : flowers) { + if(flower[0] maxCoverage[0] || (flower[2] == maxCoverage[0] && flower[3] > maxCoverage[1])){ + current[0] = maxCoverage[0]; + current[1] = maxCoverage[1]; + cnt++; + if(flower[0]11 || (maxCoverage[0] == 11 && maxCoverage[1]>30)){ + cnt++; + isCover = true; + break; + } + } + if(isCover){ + bw.write(cnt+""); + }else{ + bw.write("0"); + } + bw.close(); + } +} +```