# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1173988 | 12345678 | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++20 | 737 ms | 40720 KiB |
int encode (int n, int x, int y) {
for (int i=0; i<10; i++)
{
if ((x&(1<<i))!=(y&(1<<i)))
{
if (x&(1<<i)) return 10+i+1;
else return i+1;
}
}
}
int decode (int n, int q, int h) {
int k=0;
if (h>10) k=1, h-=10;
if (q&(1<<(h-1)))
{
if (k) return 1;
else return 0;
}
else
{
if (k) return 0;
return 1;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |