# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1023222 | 2024-07-14T13:40:16 Z | codefox | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 7000 ms | 24400 KB |
#pragma GCC target("popcnt") #pragma GCC optimize("Ofast") #include<bits/stdc++.h> int encode(int n, int a, int b) { int k = 0; int aa=0, bb=0; for (int j = 30; j < (1<<12); j++) { if (__builtin_popcount(j)==6) { k++; if (k==a) aa = j; if (k==b) bb = j; } } for (int h = 0; h< 12; h++) { if ((aa&(1<<h)) && ((bb&(1<<h))==0)) return h+1; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 7037 ms | 24136 KB | Time limit exceeded |
2 | Execution timed out | 9988 ms | 24400 KB | Time limit exceeded |