xyh15387590999 @ 2024-08-16 15:57:17
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
while(n!=1)
{
if(n%2==0)
{
cout<<n;
cout<<"/2=";
n = n / 2;
cout<<n<<endl;
}
else
{
cout<<n;
cout<<"*3+1=";
n=n*3+1;
cout<<n<<endl;
}
}
cout<<"End";
return 0;
}
by Orz_Sponge_Bob @ 2024-08-16 16:00:48
@xyh15387590999 这题挺简单吧
by xuchenxi @ 2024-08-16 16:01:07
@xyh15387590999 long long
by xuchenxi @ 2024-08-16 16:04:09
@xyh15387590999 十年OI一场空,___。
by imzoeg @ 2024-08-16 16:05:30
@xyh15387590999
开long long
by xyh15387590999 @ 2024-08-16 16:36:43
谢谢
by xyh15387590999 @ 2024-08-16 16:37:53
@xuchenxi 不开long long 见祖宗
by smart_ @ 2024-08-16 16:51:27
俗话说得好:不开long long 见祖宗
by fonglingyueyin @ 2024-08-30 11:09:48
不开long long 见太奶。(doge)