Submission #461328

#TimeUsernameProblemLanguageResultExecution timeMemory
461328JasperLUtrka (COCI14_utrka)C++14
0 / 80
1 ms204 KiB
#include <iostream> #include <vector> #include <map> using namespace std; #define maxn 100005 int n; vector<string> nm; map<string,bool> seen; int main() { cin >> n; for (int i = 0; i < n; i++) { string s; cin >> s; nm.push_back(s); seen[s] = false; } for (int i = 0; i < n-1; i++) { string s; cin >> s; seen[s] = true; } for (string s : nm) { if (!seen[s]) cout << s << endl; } }
#Verdict Execution timeMemoryGrader output
Fetching results...