Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- long long n, t, mx;
- int main()
- {
- cin >> n;
- cout << (1LL<<__builtin_popcountll(n)) - 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement