还是要重思考!
#include<bits/stdc++.h>
using namespace std;
int f(int n){
return n==1?1:f(n/2)+1;
}
int main()
{
int n;
while(scanf("%d",&n)==1){
printf("%d\n",f(n));
}
return 0;
}
11384 - Help is needed for Dexter
阅读 54
2022-08-05
还是要重思考!
#include<bits/stdc++.h>
using namespace std;
int f(int n){
return n==1?1:f(n/2)+1;
}
int main()
{
int n;
while(scanf("%d",&n)==1){
printf("%d\n",f(n));
}
return 0;
}
相关推荐
精彩评论(0)