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>
char a[11][11],b[11][21];
int main(){
int i,j,n,m;
scanf("%d%d",&n,&m);
for(i=1;i<=n;++i)scanf("%s",a+i);
for(i=1;i<=n;++i)scanf("%s",b+i);
for(i=1;i<=n;++i){
for(j=0;j<m&&a[i][j]==b[i][j*2]&&a[i][j]==b[i][j*2+1];++j);
if(j<m){
printf("Not ");
break;
}
}
puts("Eyfa");
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |