Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
31535 lnx 角谷猜想 C++ 输出超限 4 MS 240 KB 262 2023-11-19 15:06:37

Tests(0/1):


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


测评信息: