Untitled
unknown
c_cpp
a year ago
764 B
7
Indexable
// lmao :))
#include <bits/stdc++.h>
#define use(x) freopen(x".inp", "r", stdin); freopen(x".out", "w", stdout);
#define fix(x) fixed << setprecision(x)
#define all(x) x.begin(), x.end()
#define skip scanf("\n");
#define el '\n'
#define fi first
#define se second
#define inp(arr, size); for(int i = 0; i < size; i++){ cin >> arr[i];}
#define out(arr); for(auto x : arr){cout << x << ' ';}
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
string s = "0A";
stringstream ss;
ss << hex << s;
unsigned n;
ss >> n;
bitset<36> b(n);
string res = b.to_string();
while(res[0] == '0'){
res.erase(0,1);
}
cout << res;
}
Editor is loading...
Leave a Comment