제출 #339157

#제출 시각아이디문제언어결과실행 시간메모리
339157ammar2000마라톤 경주 (COCI14_utrka)C++17
80 / 80
255 ms10604 KiB
#include <bits/stdc++.h> using namespace std; string s; map <string ,int > mp; int n; int main() { cin>>n; int p=n-1; while (n--) { cin>>s; mp[s]++; } while (p--) {cin>>s; mp[s]--;} for (auto t:mp) if (t.second==1) cout <<t.first; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...