# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
29709 | 2017-07-20T11:21:07 Z | PrOAhMeT | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 1419 ms | 27480 KB |
#include <bits/stdc++.h> #define mp make_pair #define pb push_back #define pii pair<int,int> #define LL long long #define st first #define nd second #define endl '\n' using namespace std; static int cnt=0; int encode (int n, int x, int y) { assert(1); /*//cout<<"hi "<<n<<" "<<x<<" "<<y<<endl; srand(1203); vector<int> v; for(int i=1;i<=n;++i) v.pb(i); random_shuffle(v.begin(),v.end()); int a[n+1]; for(int i=0;i<n;++i) a[v[i]]=i; int c=1; for(int i=0;;++i) { if((a[x]&(1<<i))!=(a[y]&(1<<i))) { return c+((a[x]&(1<<i))?1:0); } c+=2; }*/ }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1103 ms | 27480 KB | wrong answer |
2 | Incorrect | 1419 ms | 27480 KB | wrong answer |