# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
129225 | 2019-07-11T21:10:12 Z | mraron | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 4 ms | 504 KB |
#include<vector> using namespace std; vector<int> sts; int init=-1; int encode (int n, int x, int y) { if(init==-1) { init=1; vector<int> sts; for(int i=0;i<(1<<12);++i) { int cnt=0; for(int j=0;j<12;++j) { cnt+=((1<<j)&i)!=0; } if(cnt==6) sts.push_back(i); } } int X=sts[x], Y=sts[Y]; int h=-1; for(int j=0;j<12;++j) { if((X&(1<<j)) && !(Y&(1<<j))) h=j+1; } return h; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 4 ms | 504 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Runtime error | 3 ms | 504 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |