# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
26785 | baactree | cmp (balkan11_cmp) | C++14 | 4144 ms | 100908 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "cmp.h"
void remember(int n) {
bit_set(10240-n);
n++;
while(n<5000){
bit_set(n);
n+=n&(-n);
}
}
int compare(int b) {
if(bit_get(10240-b))
return 0;
int ret=0;
b++;
while(b){
ret+=bit_get(b);
b-=b&(-b);
}
if(ret>0)
return 1;
return -1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |