제출 #17500

#제출 시각아이디문제언어결과실행 시간메모리
17500kdh9949마라톤 경주 (COCI14_utrka)C++98
80 / 80
502 ms12812 KiB
#include <iostream> #include <map> #include <string> using namespace std; int n; string str; map<string, int> mp; int main(){ cin >> n; for(int i = 0; i < n; i++){ cin >> str; mp[str]++; } for(int i = 0; i < n - 1; i++){ cin >> str; mp[str]--; if(mp[str] == 0) mp.erase(str); } cout << mp.begin()->first; }
#Verdict Execution timeMemoryGrader output
Fetching results...