Submission #564671

#TimeUsernameProblemLanguageResultExecution timeMemory
564671shrimbQuestion (Grader is different from the original contest) (CEOI14_question_grader)C++17
0 / 100
1825 ms24048 KiB
#include"bits/stdc++.h" using namespace std; int encode (int n, int x, int y) { int ret = 0; while (x % 2 == 0) ret++, x/=2; while (x % 2) ret++, x/=2; return ret; }
#include"bits/stdc++.h" using namespace std; int decode (int n, int q, int h) { int x = q; int ret = 0; while (x % 2 == 0) ret++, x/=2; while (x % 2) ret++, x/=2; return ret == h; }
#Verdict Execution timeMemoryGrader output
Fetching results...