# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
73203 | test | Judge Against Wrong Code (FXCUP3_judge) | C++14 | 1573 ms | 172124 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<bits/stdc++.h>
using namespace std;
const int MN = 500010;
int X, D, C;
int data[MN], code[MN], cnt1[1 << 20], cnt2[1 << 20];
int cc1[1 << 20][20];
int dp1(int mask, int p) {
if(p == X) return cnt1[mask]? mask : 0;
int &ret = cc1[mask][p];
if(ret != -1) return ret;
ret = 0;
if(mask & (1 << p)) {
ret |= dp1(mask, p + 1);
ret |= dp1(mask ^ (1 << p), p + 1);
}
else ret |= dp1(mask, p + 1);
return ret;
}
int cc2[1 << 20][20];
int dp2(int mask, int p) {
if(p == X) return cnt2[mask];
int &ret = cc2[mask][p];
if(ret != -1) return ret;
ret = 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... |