Files
PS/boj/2885.py
Gyubin Han 2600340c03 first commit
from old repository to a new repository
2024-04-30 16:59:10 +09:00

18 lines
150 B
Python

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)