Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <queue>
- #include <fstream>
- #include <vector>
- #include <cstring>
- //#include <bits/stdc++.h>
- using namespace std;
- int main() {
- int p = 247;
- for(int bit = 30; bit >= 0; bit--) {
- if(p & (1 << bit)) {
- cout << 1;
- }
- else {
- cout << 0;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement