Submission #35079

# Submission time Handle Problem Language Result Execution time Memory
35079 2017-11-18T01:15:09 Z imaxblue Question (Grader is different from the original contest) (CEOI14_question_grader) C++14
0 / 100
1849 ms 25664 KB
int encode(int N, int X, int Y){
  return (((X^Y)&-(X^Y)) << 1)+((X&(((X^Y)&-(X^Y))))>0);
}
int decode(int N, int Q, int H){
  return (H&1)?((Q&(H/2))>0):((Q&(H/2))==0);
}
# Verdict Execution time Memory Grader output
1 Incorrect 1685 ms 25664 KB Integer 1025 violates the range [1, 1000]
2 Incorrect 1849 ms 25664 KB Integer 1025 violates the range [1, 1000]