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))); +}