#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;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
1720 KB |
Output is correct |
2 |
Correct |
0 ms |
1720 KB |
Output is correct |
3 |
Correct |
0 ms |
1720 KB |
Output is correct |
4 |
Correct |
0 ms |
1720 KB |
Output is correct |
5 |
Correct |
0 ms |
1720 KB |
Output is correct |
6 |
Correct |
0 ms |
1720 KB |
Output is correct |
7 |
Correct |
0 ms |
1720 KB |
Output is correct |
8 |
Correct |
0 ms |
1720 KB |
Output is correct |
9 |
Correct |
0 ms |
1720 KB |
Output is correct |
10 |
Correct |
0 ms |
1720 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
1720 KB |
Output is correct |
2 |
Correct |
0 ms |
1720 KB |
Output is correct |
3 |
Correct |
0 ms |
1720 KB |
Output is correct |
4 |
Correct |
0 ms |
1720 KB |
Output is correct |
5 |
Correct |
0 ms |
1720 KB |
Output is correct |
6 |
Correct |
0 ms |
1720 KB |
Output is correct |
7 |
Correct |
0 ms |
1720 KB |
Output is correct |
8 |
Correct |
0 ms |
1720 KB |
Output is correct |
9 |
Correct |
0 ms |
1720 KB |
Output is correct |
10 |
Correct |
0 ms |
1720 KB |
Output is correct |