first commit

from old repository to a new repository
This commit is contained in:
Gyubin Han
2024-04-30 16:59:10 +09:00
commit 2600340c03
93 changed files with 1610 additions and 0 deletions

18
boj/2885.py Normal file
View File

@@ -0,0 +1,18 @@
k=int(input())
n=1
while n<k:
n*=2
count=0
s=0
d=n
if not n==k:
while not s==k:
di=d//2
if s+di<=k:
s+=di
d/=2
count+=1
print(n,count)