Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
442858 沈郭栋 【C3-9】角谷猜想 C++ 解答错误 20 1 MS 240 KB 236 2026-05-30 16:44:23

Tests(2/10):


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


测评信息: