[백준] 1057 토너먼트(python)

나영·2024년 11월 8일

백준

목록 보기
7/9

✅문제

✏️풀이

n,k,e=map(int, input().split())
cnt=0
while k!=e:
   k -= k//2
   e -= e//2
   cnt+=1
print(cnt)

⭕정답확인

0개의 댓글