From ae5a4d507e83f36263e7b472696135e26b2649dc Mon Sep 17 00:00:00 2001 From: LiiNi-coder <97495437+LiiNi-coder@users.noreply.github.com> Date: Thu, 23 Oct 2025 20:56:05 +0900 Subject: [PATCH] =?UTF-8?q?[20251023]=20PGM=20/=20LV2=20/=20=EC=B5=9C?= =?UTF-8?q?=EC=86=9F=EA=B0=92=20=EB=A7=8C=EB=93=A4=EA=B8=B0=20/=20?= =?UTF-8?q?=EC=9D=B4=EC=9D=B8=ED=9D=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...2 \353\247\214\353\223\244\352\270\260.md" | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 "LiiNi-coder/202510/23 PGM \354\265\234\354\206\237\352\260\222 \353\247\214\353\223\244\352\270\260.md" diff --git "a/LiiNi-coder/202510/23 PGM \354\265\234\354\206\237\352\260\222 \353\247\214\353\223\244\352\270\260.md" "b/LiiNi-coder/202510/23 PGM \354\265\234\354\206\237\352\260\222 \353\247\214\353\223\244\352\270\260.md" new file mode 100644 index 00000000..92bbe148 --- /dev/null +++ "b/LiiNi-coder/202510/23 PGM \354\265\234\354\206\237\352\260\222 \353\247\214\353\223\244\352\270\260.md" @@ -0,0 +1,26 @@ +```java +import java.util.*; + +class Solution +{ + public int solution(int []A, int []B) + { + int answer = 0; + List a = new ArrayList<>(); + for(int i: A){ + a.add(i); + } + List b = new ArrayList<>(); + for(int i: B){ + b.add(i); + } + Collections.sort(a); + Collections.sort(b, Collections.reverseOrder()); + for(int i = 0; i