Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
40711 yejiaxiangBMT 角谷猜想 C++ 通过 1 MS 248 KB 265 2024-02-16 00:22:24

Tests(1/1):


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


测评信息: