Skip to content

Commit 28776c3

Browse files
ing-eokingbugs-bot
authored andcommitted
🐜 Study: μ˜ˆμƒ λŒ€μ§„ν‘œ (#72)
1 parent d17dbc3 commit 28776c3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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)