题解 | #二叉树#
二叉树
https://www.nowcoder.com/practice/5b80ab166efa4551844657603227caeb
#include <iostream> using namespace std; int x, y; int main() { while(cin >> x >> y) { while(x != y) { if(x > y) { x = x / 2; } else if(x < y) { y = y / 2; } } cout << x << endl; } }