#include <iostream>
#include <string>
using namespace std;
int main()
{
int x,y;
cin >> x >> y;
while(1)
{
if( x > y )
x /= 2;
else if( x < y )
y /= 2;
else if( x == y )
{
cout << x << endl;
break;
}
}
return 0;
}
二叉树
最新推荐文章于 2024-07-29 08:47:18 发布