Submission #568666

#TimeUsernameProblemLanguageResultExecution timeMemory
568666Garguy22Utrka (COCI14_utrka)C++17
0 / 80
77 ms22220 KiB
#include <iostream> #include <string> #include <map> using namespace std; string str[100007]; int main(){ ios_base::sync_with_stdio(false); cin.tie(0); int n; cin >> n; map<string, int> mp; for(int i = 0; i < 2*n-1; i++){ cin >> str[i]; mp[str[i]]++; } for(int i = 0; i < 2*n; i++){ if(mp[str[i]] % 2){ cout << str[i] << endl; return 0; } } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...