Submission #1083109

#TimeUsernameProblemLanguageResultExecution timeMemory
1083109toast12Utrka (COCI14_utrka)C++14
80 / 80
147 ms18260 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<string, int> freq; for (int i = 0; i < n; i++) { string s; cin >> s; freq[s]++; } map<string, int> freq2; for (int i = 0; i < n-1; i++) { string s; cin >> s; freq2[s]++; } for (auto x : freq) { if (x.second > freq2[x.first]) { cout << x.first << '\n'; break; } } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...