=> unordered_map으로 풀이하면 된다고 생각함.
unordered_map<string, int>man;
#include <string>
#include <vector>
#include <unordered_map>
using namespace std;
string solution(vector<string> participant, vector<string> completion) {
string answer = "";
unordered_map<string, int> man;
for(const auto &i : participant)
man[i]++;
for(const auto &i : completion)
man[i]--;
for(const auto & i: man)
{
if(i.second == 1)
{
answer = i.first;
break;
}
}
return answer;
}