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 <vector>
#include <iostream>
using namespace std;
int main(){
int n, m;
scanf("%d%d",&n, &m);
char tmp = 10;
bool chk = true;
vector<vector<char> > str, str2;
str.resize(n);
for(int i=0;i<n;i++){
str[i].resize(m);
for(int j=0;j<m;j++){
while((tmp = getchar()) < 35);
str[i][j] = tmp;
}
}
tmp = 10;
str2.resize(n);
for(int i=0;i<n;i++){
str2[i].resize(2*m);
for(int j=0;j<2*m;j++){
while((tmp = getchar()) < 35);
str2[i][j] = tmp;
if(str2[i][j] != str[i][j/2])
chk = false;
}
}
if(chk)
printf("Eyfa\n");
else
printf("Not Eyfa\n");
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |