제출 #882820

#제출 시각아이디문제언어결과실행 시간메모리
882820unexpectedbroUtrka (COCI14_utrka)C++14
80 / 80
207 ms18208 KiB
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<string, int>cnt, finished; for (int i = 0; i < n; i++) { string s; cin >> s; cnt[s]++; } for (int i = 1; i < n; i++) { string s; cin >> s; finished[s]++; } string ans; for (auto i : cnt) { int x = i.second; int y = finished[i.first]; if (x != y) { ans = i.first; } } cout << ans << endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...