| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 442857 | 姚轶宁 | 【C3-9】角谷猜想 | C++ | 通过 | 100 | 2 MS | 240 KB | 209 | 2026-05-30 16:42:28 |
#include<iostream> using namespace std; int main() { int n,cnt=0;; cin>>n; while(n!=1) { if(n%2==0) { n/=2; } else { n=n*3+1; } cnt++; } cout<<cnt; return 0; }