답안 #15135

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
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;
}
# 결과 실행 시간 메모리 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