# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
83854 | 2018-11-11T12:21:25 Z | aminra | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 0 ms | 0 KB |
#include <stdio.h> #include <stdlib.h> int encode(int n, int x, int y) { int bt = -1; for (int i = 0; i < 10; i++) if(((x >> i) & 1) != ((y >> i) & 1)) bt = i; if(x > y) return bt + 11; else return bt + 1; }