Submission #1141616

#TimeUsernameProblemLanguageResultExecution timeMemory
1141616SulAcmp (balkan11_cmp)C++20
0 / 100
0 ms320 KiB
#include <bits/stdc++.h> #include "cmp.h" #define all(a) a.begin(), a.end() using namespace std; void remember(int a) { for (int i = 0; i < 12; i++) if ((a >> i) & 1) bit_set(i); } int compare(int b) { for (int i = 0; i < 12; i++) { int a_i = bit_get(i); int b_i = (b >> i) & 1; if (b_i < a_i) return -1; if (b_i > a_i) return 1; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...