This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |