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 <iostream>
using namespace std;
bool checkImage(int w, int h);
char arr[10][10];
char arr2[20][20];
int main(){
int width, height;
cin >> width >> height;
for(int i=0;i<height;i++){
for(int j=0;j<width;j++){
cin >> arr[i][j];
}
}
for(int i=0;i<height;i++){
for(int j=0;j<2*width;j++){
cin >> arr2[i][j];
}
}
if(checkImage(width, height))
cout << "Eyfa" << endl;
else
cout << "Not Eyfa" << endl;
return 0;
}
bool checkImage(int w, int h){
for(int i=0;i<h;i++){
for(int j=0;j<w;j++){
if((arr[i][j] == arr2[i][j*2]) && (arr[i][j] == arr2[i][j*2+1]) )
continue;
else return false;
}
}
return true;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |