Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <cstdio>
- #include <cmath>
- #include <string>
- #include <vector>
- #include <algorithm>
- #include <map>
- #include <set>
- using namespace std;
- int k[8];
- int main() {
- int x;
- cin >> x;
- for (int i = 7; i >= 0; --i) {
- k[i] = x % 2;
- x /= 2;
- }
- for (int i = 0; i < 8; ++i) {
- cout << k[i];
- }
- cout << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement