Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128874 凌嘉圻 整数猜想 C++ 解答错误 0 0 MS 232 KB 175 2024-01-26 10:57:12

Tests(0/4):


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


测评信息: