Submission #969631

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