Submission #659985

#TimeUsernameProblemLanguageResultExecution timeMemory
659985ajthelegendcoderUtrka (COCI14_utrka)C++17
80 / 80
189 ms10376 KiB
#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin >> n;
    map<string,int> mp;
    int n2 = 2*n - 1;
    while(n2--){
        string name;
        cin >> name;
        mp[name]++;
    }
    
    for(auto m : mp){
        if(m.second % 2 == 1) cout << m.first;
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...