Submission #15091

#TimeUsernameProblemLanguageResultExecution timeMemory
15091fleo0917뚊 (kriii3_EE)C++14
20 / 20
0 ms1720 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...