Submission #26785

#TimeUsernameProblemLanguageResultExecution timeMemory
26785baactreecmp (balkan11_cmp)C++14
0 / 100
4144 ms100908 KiB
#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 timeMemoryGrader output
Fetching results...