- 龙凤苑中学C班4.9
一锤之音可复制
- @ 2024-4-9 17:13:25
#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.