# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
564861 | 2022-05-19T20:25:23 Z | Uzouf | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 7000 ms | 5348 KB |
int encode(int n,int x,int y) { int grid[924]; int col=-1; for (int msk=0;msk<(1<<12);msk++) { if (__builtin_popcount(msk)!=6) continue; col++; grid[col]=msk; } int h; for (int i=0;i<12;i++) { if ((grid[x-1]&(1<<i))==(1<<i) && (grid[y-1]&(1<<i))!=(1<<i)) { h=i+1; break; } } return h; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 7029 ms | 5120 KB | Time limit exceeded |
2 | Execution timed out | 7050 ms | 5348 KB | Time limit exceeded |