#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
scanf("%lld",&n);
while(1){
if(n==1){
cout<<"End";
return 0;
}
if(!n%2){
cout<<n<<"/2="<<n/2<<endl;
n=n/2;
}
else{
cout<<n<<"*3+1="<<n*3+1<<endl;
n=n*3+1;
}
}
return 0;
}
为啥TLE,5TLE1AC.