링크 : https://school.programmers.co.kr/learn/courses/30/lessons/42576
#include <string>
#include <vector>
#include <unordered_map>
using namespace std;
string solution(vector<string> participant, vector<string> completion) {
string answer = "";
unordered_map<string, int > hash;
for(auto name : participant){
hash[name]++;
}
for(auto name : completion){
hash[name]--;
}
for(auto pair : hash){
if(pair.second > 0){
answer = pair.first;
break;
}
}
return answer;
}