https://www.acmicpc.net/problem/1057
토너먼트 규칙을 통해 풀 수 있는 문제다
소스 코드
n, a, b = map(int, input().split()) count = 0 while a != b: a -= a//2 b -= b//2 count += 1 print(count)