We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ebe3ac commit 0013544Copy full SHA for 0013544
yongjun-0903/예상 대진표.py
@@ -0,0 +1,8 @@
1
+def solution(n, a, b):
2
+ if (a + 1) // 2 == (b + 1) // 2:
3
+ return 1
4
+
5
+ next_a = (a + 1) // 2
6
+ next_b = (b + 1) // 2
7
8
+ return 1 + solution(n // 2, next_a, next_b)
0 commit comments