https://pintia.cn/problem-sets/994805260223102976/problems/994805325918486528
#include<bits/stdc++.h>
using namespace std;
int n,sum;
int main()
{
cin>>n;
while(n!=)
{
if(n&)
n=(*n+)/;
else
n/=;
sum++;
}
cout<<sum;
return ;
}
https://pintia.cn/problem-sets/994805260223102976/problems/994805325918486528
#include<bits/stdc++.h>
using namespace std;
int n,sum;
int main()
{
cin>>n;
while(n!=)
{
if(n&)
n=(*n+)/;
else
n/=;
sum++;
}
cout<<sum;
return ;
}