Submission #201455

#TimeUsernameProblemLanguageResultExecution timeMemory
201455EmmanuelACUtrka (COCI14_utrka)C++14
80 / 80
586 ms18296 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; map<string, int> ms; set<string> sol; for(int i=0; i<n; i++){ string s; cin >> s; ms[s] ++; sol.insert(s); } for(int i=0; i<n-1; i++){ string s; cin >> s; ms[s]--; if(ms[s] == 0) sol.erase(s); } cout << *(sol.begin()) << "\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...