思维题(结论题)
题目地址:https://ac.nowcoder.com/acm/contest/11471/F
#include<stdio.h>
typedef long long ll;
ll t;
int main()
{
ll n,m,ans=1;
scanf("%lld",&n);
while(ans<<=1,n>>=1);
printf("%lld\n",ans-1);
return 0;
}
思维题(结论题)
题目地址:https://ac.nowcoder.com/acm/contest/11471/F
#include<stdio.h>
typedef long long ll;
ll t;
int main()
{
ll n,m,ans=1;
scanf("%lld",&n);
while(ans<<=1,n>>=1);
printf("%lld\n",ans-1);
return 0;
}