Submission #969629

#TimeUsernameProblemLanguageResultExecution timeMemory
969629RandomUserUtrka (COCI14_utrka)C++17
80 / 80
122 ms10352 KiB
#include <bits/stdc++.h> using namespace std; int32_t main() { int n; cin >> n; map<string, int> mp; string s; for(int i=0; i<n; i++) { cin >> s; mp[s]++; } for(int i=0; i<n-1; i++) { cin >> s; mp[s]--; } for(auto &[str, cnt] : mp) { if(cnt > 0) { cout << str << '\n'; return 0; } } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...