| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 128755 | 刘语晗 | 整数猜想 | C++ | Accepted | 100 | 0 MS | 248 KB | 188 | 2024-01-26 09:22:28 |
#include <bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a; while(a!=1){ cout<<a<<" "; if(a%2==0) a=a/2; else a=a*3+1; } cout<<a<<endl; return 0; }