Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma GCC optimize("O3", "unroll-loops")
- #include <bits/stdc++.h>
- using namespace std;
- const int inf = 1 << 30 - 1;
- const long long MOD = 1000000007;
- typedef long long ll;
- typedef long double ld;
- typedef vector<int> vi;
- typedef vector<ll> vll;
- typedef pair<int, int> ii;
- typedef vector<ii> vii;
- typedef vector<vi> vvi;
- typedef vector<bool> vb;
- #define FAST ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
- #define all(a) a.begin(), a.end()
- #define pb push_back
- #define files(in, out) freopen(in, "r", stdin); freopen(out, "w", stdout)
- #define ppb pop_back
- #define ppf pop_front
- #define fs first
- #define sd second
- #define eb emplace_back
- template<class T> inline void sort(T &a) { sort(all(a)); }
- template<class T> inline T sorted(T a) { sort(a); return a; }
- template<class T> inline istream& operator>>(istream& str, vector<T> &a) { for (auto &i : a) str >> i; return str; }
- void solve() {
- int n;
- cin >> n;
- for (int i = 7; i >= 0; --i) {
- cout << ((n >> i) & 1);
- }
- }
- signed main() {
- #ifndef ONLINE_JUDGE
- freopen("input.txt", "r", stdin);
- freopen("output.txt", "w", stdout);
- #endif
- FAST;
- int q = 1;
- // cin >> q;
- while (q--) {
- solve();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement