# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
225709 | 2020-04-21T11:20:40 Z | maomao90 | Popcount (COCI19_popcount) | C++14 | 5 ms | 384 KB |
#include <cstdio> using namespace std; int N, K; int main() { scanf("%d%d", &N, &K); printf("%d\n", (N - 1) / 4 + 1); for (int i = 1; i <= N; i++) { if (i % 4 == 1) { if (i != 1) printf("A&((1<<%d)-1-(1<<%d)-1)\n", N + 1, i); printf("A="); } printf("(A&(1<<%d))>>%d+", i, i); } printf("A&((1<<%d)-1)\n", N / 4 * 4 + 1); return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 256 KB | Wrong command format. |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 4 ms | 256 KB | Wrong command format. |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 384 KB | Wrong command format. |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 4 ms | 384 KB | Incorrect number of commands. |
2 | Halted | 0 ms | 0 KB | - |