G2A Many GEOs
SHARE
TWEET

4

a guest Apr 9th, 2020 155 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #include <iostream>
  3. using namespace std;
  4. int main() {
  5. int n;
  6.   cin>>n;
  7.   int bitAmount = 0;
  8.   while (n) {
  9.     bitAmount += n % 2;
  10.     n /= 2;
  11.   }
  12.   if (bitAmount == 1)
  13.     cout<<"YES";
  14.   else
  15.     cout<<"NO";
  16.   return 0;
  17. }
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top