XXGawa @ 2024-12-17 17:59:21
#include<iostream>
using namespace std;
int main()
{
long long n;
cin>>n;
while(n!=1)
{
if(n%2==1)
{
printf("%d*3+1=%d",n,n*3+1);
n=n*3+1;
}
else
{
printf("%d/2=%d",n,n/2);
n/=2;
}
cout<<endl;
}
cout<<"End";
return 0;
}
by ABCgfed @ 2024-12-17 18:04:11
@XXGawa lld
by XXGawa @ 2024-12-17 18:29:40
@ABCgfed过了谢谢