이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |