#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; while(n!=1){ if(n%2==0){ cout<<n<<"/2="<<n/2<<endl; }else{ cout<<n<<"3+1="<<endl; n=n3+1; } return 0; }
使用您的 蒙青创OJ 通用账户