- 盗窃-月之眼
- 2017-07-01 21:43:33 @
#include<stdio.h>
int main(){
unsigned long long n,s=0;
scanf("%lld",&n);
unsigned long long a=2;
while (a<=2*n){
if (n%a>=a/2){
s+=n/a+1;
}
else{
s+=n/a;
}
a*=4;
}
printf("%lld",s);
return 0;
}
0 条评论
目前还没有评论...