Submission #15080

#TimeUsernameProblemLanguageResultExecution timeMemory
15080ztehgns뚊 (kriii3_EE)C++98
20 / 20
0 ms1724 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...