Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71132 sh25_wangsj 角谷猜想 C++ 通过 0 MS 244 KB 357 2025-10-24 15:07:00

Tests(1/1):


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


测评信息: