Submission #339157

#TimeUsernameProblemLanguageResultExecution timeMemory
339157ammar2000Utrka (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...