1 条题解

  • 1
    @ 2026-5-31 21:07:01

    #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; }

    • 1

    信息

    ID
    30965
    时间
    1000ms
    内存
    256MiB
    难度
    9
    标签
    (无)
    递交数
    12
    已通过
    3
    上传者