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>
#include <string.h>
int main() {
int n, m, f;
char arr[12][12], arr2[30][30];
scanf("%d%d", &n, &m);
getchar();
for (int i = 0; i < n; i++) {
scanf("%s", arr[i]);
getchar();
}
for (int i = 0; i < n; i++) {
scanf("%s", arr2[i]);
getchar();
}
f = 1;
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
if (arr[i][j] != arr2[i][2 * j] || arr[i][j] != arr2[i][2 * j + 1]) {
printf("Not Eyfa\n"); f = 0;
break;
}
}
if (f == 0) break;
}
if (f == 1) {
printf("Eyfa");
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |