Skip to content

Commit 329c33c

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

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 + a % 2) // 2, (b + b % 2) // 2
5+
answer += 1
6+
return answer

0 commit comments

Comments
Β (0)