#include<bits/stdc++.h>
using namespace std;
int main( )
{
long long n, x;
cin >> n >> x;
bool flag = 0;
while(n>1 && x>0){
if(n%2==0){
n=n/2;
x--;
}
else{
n=3*n+1;
x--;
}
}
// cout << n;
if(n==1){
cout << "yes";
}
else{
cout << "no";
}
return 0;
}
09-14
6565
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-16
2547
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交