Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
37257 jiabokai 角谷猜想 C++ 解答错误 0 MS 252 KB 294 2024-01-19 18:41:03

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; while(true){ if(n==1){ cout<<"End"; return 0; } if(n%2==0){ cout<<n<<"/2="; n/=2; cout<<n<<endl; }else{ cout<<n<<"*3+1="; n*=3; n+=1; cout<<n; } } return 0; }


测评信息: