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 <string>
#include <vector>
int main(int argc, char *argv[])
{
bool ans = true;
int N, M;
std::string tmp;
std::vector<std::string> before, after;
std::cin >> N >> M;
for (int i = 0; i < N; ++i) {
std::cin >> tmp;
before.push_back(tmp);
}
for (int i = 0; i < N; ++i) {
std::cin >> tmp;
after.push_back(tmp);
}
for (int i = 0; i < N; ++i) {
tmp = "";
for (int j = 0; j < M; ++j) {
tmp += before[i][j];
tmp += before[i][j];
}
if (tmp != after[i]) {
ans = false;
break;
}
}
std::cout << (ans ? "Eyfa" : "Not Eyfa") << std::endl;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |