# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
225708 | maomao90 | Popcount (COCI19_popcount) | C++14 | 5 ms | 384 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <cstdio>
using namespace std;
int N, K;
int main()
{
scanf("%d%d", &N, &K);
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 (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |