标签:return rac test long void its names cal using
链接
代码实现
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void){
ll n;
cin >> n;
int len = log2(n);
ll ans = 1;
for(int i = 1; i <= len+1; i++){
ans *= 2;
}
cout<<ans-1<<endl;
return 0;
}
标签:return rac test long void its names cal using
原文地址:https://www.cnblogs.com/AC-AC/p/12235911.html