Submission #15135

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