Submission #17500

#TimeUsernameProblemLanguageResultExecution timeMemory
17500kdh9949Utrka (COCI14_utrka)C++98
80 / 80
502 ms12812 KiB
#include <iostream> #include <map> #include <string> using namespace std; int n; string str; map<string, int> mp; int main(){ cin >> n; for(int i = 0; i < n; i++){ cin >> str; mp[str]++; } for(int i = 0; i < n - 1; i++){ cin >> str; mp[str]--; if(mp[str] == 0) mp.erase(str); } cout << mp.begin()->first; }
#Verdict Execution timeMemoryGrader output
Fetching results...