Submission #15158

# Submission time Handle Problem Language Result Execution time Memory
15158 2015-07-12T01:05:10 Z aqaqaqz 뚊 (kriii3_EE) C++
20 / 20
0 ms 1720 KB
#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
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
# Verdict Execution time Memory 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