Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
333979 黄浙峰老师 【GESP四级】角谷猜想 C++ 解答错误 0 4 MS 240 KB 204 2025-07-17 10:21:49

Tests(0/10):


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


测评信息: