Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. unsigned long long a, b;
  5.  
  6. int main(){
  7. unsigned long long n, m;
  8. // NE KOPIRUII V TUPUY
  9. cin >> a;
  10. if (a <= 28) cout << 110;
  11. else if (a <= 496) cout << 11100;
  12. else if (a <= 8128) cout << "111110000";
  13. else if (a <= 33550336LL) cout << "1111111000000";
  14. else if (a <= 8589869056LL) cout << "1111111111111000000000000";
  15. else if (a <= 137438691328LL) cout << "111111111111111110000000000000000";
  16. else if (a <= 2305843008139952128LL) cout << "1111111111111111111000000000000000000";
  17. else cout << "1111111111111111111111111111111000000000000000000000000000000";
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement