- 龙凤苑中学A班5.31
一尺之锤
- @ 2024-5-31 16:54:34
#include <bits/stdc++.h>
using namespace std;
int main() {
int a,i=1;
cin>>a;
while(a!=1)
{
i++;
a/=2;
}
cout<<i;
return 0;
}
0 comments
No comments so far...
#include <bits/stdc++.h>
using namespace std;
int main() {
int a,i=1;
cin>>a;
while(a!=1)
{
i++;
a/=2;
}
cout<<i;
return 0;
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.