# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
72284 | 김동현보다 잘함 (#118) | Judge Against Wrong Code (FXCUP3_judge) | C++17 | 437 ms | 9516 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;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
int n, c, d;
int cnt[1100000], dnt[1100000], rd[1100000], ans[500100];
void calc(int cnt[]) {
int i, j;
for (i=0;i<n;i++){
for (j=0;j<(1<<n);j++) {
if (j>>i&1) cnt[j] += cnt[j^(1<<i)];
}
}
for (i=(1<<n)-1;i>=0;i--) {
for (j=0;j<n;j++) {
if (i>>j&1) {
if (cnt[i]==cnt[i^(1<<j)]) {
cnt[i] = 0;
break;
}
}
}
}
}
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... |