제출 #686662

#제출 시각아이디문제언어결과실행 시간메모리
686662mdub마라톤 경주 (COCI14_utrka)C++14
80 / 80
157 ms10284 KiB
#include <bits/stdc++.h> using namespace std; int main () { map<string, int> contestants; int n; cin >> n; for (int i = 0; i < n; i++) { string s; cin >> s; contestants[s]++; } for (int i = 0; i < n - 1; i++) { string s; cin >> s; contestants[s]--; } for (pair<string, int> elem: contestants) { if (elem.second > 0) cout << elem.first << '\n'; } }
#Verdict Execution timeMemoryGrader output
Fetching results...