Skip to content

Commit b91a982

Browse files
committed
🐜 Study: μ˜ˆμƒ λŒ€μ§„ν‘œ
1 parent 5ebe3ac commit b91a982

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def solution(n, a, b):
2+
answer = 0
3+
while a != b:
4+
a, b = (a + 1) // 2, (b + 1) // 2
5+
answer += 1
6+
return answer

0 commit comments

Comments
Β (0)