NOJ/98/main.c
Saturneric 52668c4122 Add.
2020-09-01 00:46:43 +08:00

15 lines
175 B
C

#include <stdio.h>
long f(long n){
if(!n) return 0;
else return 1+f(n/2);
}
int main(void){
long n;
while(scanf("%ld",&n) && n){
printf("%ld\n",f(n));
}
return 0;
}