- 二叉树父节点与子节点之间编号的对应关系
- 每次在下面或者右边的点变成其父节点
#includeusing namespace std; int main() { int x, y; cin >> x >> y; while (true) { if (x > y) x /= 2; else if (x < y) y /= 2; else break; } cout << x; }

#includeusing namespace std; int main() { int x, y; cin >> x >> y; while (true) { if (x > y) x /= 2; else if (x < y) y /= 2; else break; } cout << x; }