From b91a315c608807a92fc2335fc48cea4b340fd203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EC=9C=A0=ED=99=98?= Date: Wed, 8 Oct 2025 09:37:25 +0900 Subject: [PATCH] =?UTF-8?q?24389=EB=B2=88=20=ED=92=80=EC=9D=B4=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Appendix C/solutions/24389.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Appendix C/solutions/24389.cpp b/Appendix C/solutions/24389.cpp index 6c991660..1272d3c0 100644 --- a/Appendix C/solutions/24389.cpp +++ b/Appendix C/solutions/24389.cpp @@ -1,11 +1,13 @@ -// Authored by : BaaaaaaaaaaarkingDog +// Authored by : uhwan0723 // Co-authored by : - -// http://boj.kr/**************** +// http://boj.kr/7b47d16a20b94095b78c693797ad2cab #include using namespace std; int main(void){ ios::sync_with_stdio(0); cin.tie(0); - -} \ No newline at end of file + int n; + cin >> n; + cout << popcount((unsigned int)(n ^ (-n))); +}