# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
69019 | imsifile | Judge Against Wrong Code (FXCUP3_judge) | C11 | 446 ms | 9964 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<stdio.h>
int X, D, C;
int ors[1<<20], usr[1<<20], bm;
char st[22], chk[505050];
int main(){
scanf("%d", &X); bm=(1<<X)-1;
scanf("%d", &D);
for(int i=D; i--;){
scanf("\n%s", st);
int su=0;
for(int j=0; j<X; j++) if(st[j]=='o') su|=1<<j;
ors[su]=su;
}
scanf("%d", &C);
for(int i=C; i--;){
chk[i+1]='x';
scanf("\n%s", st);
int su=0;
for(int j=0; j<X; j++) if(st[j]=='x') su|=1<<j;
usr[su]++;
}
for(int i=0; i<X; i++){
for(int j=0; j<=bm; j++){
if(j&(1<<i)) continue;
ors[j^(1<<i)] |= ors[j];
usr[j^(1<<i)] += usr[j];
}
}
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... |