# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
347043 | 2021-01-11T15:26:52 Z | ACmachine | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++17 | 2310 ms | 24284 KB |
int encode (int n, int x, int y) { int res; if(x > y){ for(int j = 0; j < 12; ++j){ if((x & (1 << j))&&!(y & (1 << j))){ res = j; break; } } } else{ for(int j = 0; j < 12; ++j){ if(!(x & (1 << j)) && (y & (1 << j))){ res = j; break; } } } return res + 1; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2310 ms | 24216 KB | wrong answer |
2 | Incorrect | 2290 ms | 24284 KB | wrong answer |