diff --git "a/lkhyun/202510/15 PGM Lv2 \354\240\220\355\224\204\354\231\200 \354\210\234\352\260\204 \354\235\264\353\217\231.md" "b/lkhyun/202510/15 PGM Lv2 \354\240\220\355\224\204\354\231\200 \354\210\234\352\260\204 \354\235\264\353\217\231.md" new file mode 100644 index 00000000..8d4a220c --- /dev/null +++ "b/lkhyun/202510/15 PGM Lv2 \354\240\220\355\224\204\354\231\200 \354\210\234\352\260\204 \354\235\264\353\217\231.md" @@ -0,0 +1,20 @@ +```java +import java.util.*; + +public class Solution { + public int solution(int n) { + int ans = 0; + + while(n>0){ + if(n%2==0){ + n /= 2; + }else{ + ans++; + n--; + } + } + + return ans; + } +} +```