Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
335132 小林老师 【C3-9】角谷猜想 C++ 通过 100 3 MS 248 KB 196 2025-07-21 21:45:23

Tests(10/10):


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


测评信息: