Submission #659985

# Submission time Handle Problem Language Result Execution time Memory
659985 2022-11-20T07:17:04 Z ajthelegendcoder Utrka (COCI14_utrka) C++17
80 / 80
189 ms 10376 KB
#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 time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 296 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 2 ms 340 KB Output is correct
5 Correct 2 ms 312 KB Output is correct
6 Correct 74 ms 5340 KB Output is correct
7 Correct 142 ms 7884 KB Output is correct
8 Correct 158 ms 9456 KB Output is correct
9 Correct 189 ms 10376 KB Output is correct
10 Correct 177 ms 10280 KB Output is correct