Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
52210 zhangsicun 角谷猜想 C++ 编译错误 0 MS 0 KB 307 2024-09-28 16:37:52

Tests(0/0):


#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; n=n/2; }else{ cout<<n<<"*3+1="<<n*3+1<<endl; n=3*n+! } } cout<<"End"; return 0; }


测评信息: