From 6b16a5ab38a44106c8830cbf0d74908ee8ae3b20 Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Thu, 11 Dec 2025 20:27:38 +0900 Subject: [PATCH] =?UTF-8?q?[20251211]=20PGM=20/=20Lv2=20/=20=EB=8B=A4?= =?UTF-8?q?=EC=9D=8C=20=ED=81=B0=20=EC=88=AB=EC=9E=90=20/=20=EC=9D=B4?= =?UTF-8?q?=EA=B0=95=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...235\214 \355\201\260 \354\210\253\354\236\220.md" | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 "lkhyun/202512/11 PGM Lv2 \353\213\244\354\235\214 \355\201\260 \354\210\253\354\236\220.md" diff --git "a/lkhyun/202512/11 PGM Lv2 \353\213\244\354\235\214 \355\201\260 \354\210\253\354\236\220.md" "b/lkhyun/202512/11 PGM Lv2 \353\213\244\354\235\214 \355\201\260 \354\210\253\354\236\220.md" new file mode 100644 index 00000000..9ac55b2e --- /dev/null +++ "b/lkhyun/202512/11 PGM Lv2 \353\213\244\354\235\214 \355\201\260 \354\210\253\354\236\220.md" @@ -0,0 +1,12 @@ +```java +class Solution { + public int solution(int n) { + int cur = Integer.bitCount(n); + + while(true){ + n++; + if(Integer.bitCount(n) == cur) return n; + } + } +} +```