Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
78282 sh25_shengmy 角谷猜想 C++ Accepted 0 MS 244 KB 357 2025-12-26 15:34:52

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; }


Judgement Protocol: