Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define pb push_back
- #define F first
- #define S second
- #define int long long
- main() {
- ios_base::sync_with_stdio(0);
- cin.tie(0);
- cout.tie(0);
- freopen("input.txt", "r", stdin);
- freopen("output.txt", "w", stdout);
- for (int n = 1; n <= 100; ++n){
- // int n;
- // cin >> n;
- if (__builtin_popcountll(n) == 1 || (__builtin_popcountll(n) == 2 && n % 2 != 0)){
- cout << "Yes" << endl;
- }
- else cout << "No" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement