Submission #15135

# Submission time Handle Problem Language Result Execution time Memory
15135 2015-07-11T13:52:31 Z ddaafftt 뚊 (kriii3_EE) C++14
20 / 20
0 ms 1720 KB
#include <iostream>
#include <vector>
#include <string>
using namespace std;

int main(void)
{
	vector<string> one;

	bool res = true;

	int M, N;
	string s;

	cin >> N >> M;

	for (int i = 0; i < N; ++i)
	{
		cin >> s;
		one.push_back(s);
	}

	for (int i = 0; i < N; ++i)
	{
		cin >> s;
		
		if (s.size() != 2*M)
		{
			res = false;

			break;
		}

		for (int j = 0; j < 2 * M; ++j)
		{
			if (s[j] != one[i][j / 2])
			{
				res = false;
				break;
			}
		}
	}

	if (res)
		cout << "Eyfa";

	else
		cout << "Not Eyfa";

	return 0;
}
# 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