# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1022441 | 2024-07-13T13:59:16 Z | codefox | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 2312 ms | 24548 KB |
#pragma GCC target("popcnt") #pragma GCC optimize("Ofast") #include<bits/stdc++.h> int encode(int n, int a, int b) { int ca = __builtin_popcount(a); int cb = __builtin_popcount(b); ca--; cb--; for (int j = 0; j <= 3; j++) { if ((cb&(1<<j)) && ((a==b)||((ca&(1<<j))==0))) { return j+1; } } for (int j = 0; j < 10; j++) { if (((b&(1<<j))==0) && ((a==b)||((a&(1<<j))))) { return j+5; } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 2235 ms | 24548 KB | Output is partially correct - maxh = 14 |
2 | Partially correct | 2312 ms | 24344 KB | Output is partially correct - maxh = 14 |