Submission #1342433

#TimeUsernameProblemLanguageResultExecution timeMemory
1342433nathlol2Utrka (COCI14_utrka)C++20
80 / 80
111 ms8204 KiB
#include <bits/stdc++.h>
using namespace std;
int n; string x;
multiset<string> s;

signed main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    cin >> n;
    for(int i = 1;i<=2 * n - 1;i++){
        cin >> x;
        if(s.find(x) != s.end()) s.erase(s.find(x));
        else s.insert(x);
    }
    cout << *s.begin();
}
#Verdict Execution timeMemoryGrader output
Fetching results...