# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
140953 | 2019-08-06T07:35:19 Z | yys11631 | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++17 | 1129 ms | 126960 KB |
int encode(int n, int x, int y) { int a[5], b[5]; for (int i = 0; i < 5; i++) { a[i] = x % 4; x /= 4; } for (int i = 0; i < 5; i++) { b[i] = y % 4; y /= 4; } for (int i = 0; i < 5; i++) { if (a[i] != b[i]) { return i + a[i]*5+1; } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1085 ms | 126784 KB | wrong answer |
2 | Incorrect | 1129 ms | 126960 KB | wrong answer |