Submission #141153

#TimeUsernameProblemLanguageResultExecution timeMemory
141153Breno_XDUtrka (COCI14_utrka)C++14
80 / 80
231 ms10480 KiB
#include <map> #include <iostream> using namespace std; int n; map<string, int> mapa; int main(){ ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); cin >> n; for(int i=1; i<=n; i++){ string s; cin >> s; mapa[s]++; } for(int i=1; i<n; i++){ string s; cin >> s; mapa[s]--; } for(map<string,int>::iterator it = mapa.begin(); it!=mapa.end(); it++){ if(it->second == 1){ cout << it->first << "\n"; break; } } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...