제출 #1083109

#제출 시각아이디문제언어결과실행 시간메모리
1083109toast12마라톤 경주 (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...