# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1141640 | lyricclamp | cmp (balkan11_cmp) | C++20 | 0 ms | 0 KiB |
#include<bits/stdc++.h>
#include<cmp.h>
#define endl '\n'
#define pb push_back
using ll = long long;
using namespace std;
void remember(int a) {
string s;
s += (a % 2) + '0';
while(a /= 2) s += (a % 2) + '0';
reverse(s.begin(), s.end());
for(int i = 0; i < s.size(); i++) if(s[i] == '1') bit_set(i);
}
int compare(int b) {
ll p = 1, ans = 0;
for(int i = 0; i < 10; i++, p *= 2) ans += bit_get(i) * p;
return ans;
}
//int main() {
// ios_base::sync_with_stdio(false);
// cin.tie(0);
// cout.tie();
//
//
//
// return 0;
//}