- 角谷猜想
【25分求助】
- @ 2025-8-22 15:15:21
#include <bits/stdc++.h>
using namespace std;
int main(){
int a;
cin>>a;
while(a!=1){
if(a%2){
cout<<a<<"*3+1="<<a*3+1;
a=a*3+1;
}
else{
cout<<a<<"/2="<<a/2;
a/=2;
}
}
cout<<"End";
return 0;
}
1 comments
-
kxyjs LV 1 @ 2025-10-12 20:57:31你 没换行啊
- 1
Information
- ID
- 4527
- Time
- ms
- Memory
- MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 236
- Accepted
- 59
- Uploaded By