Submission #622318

# Submission time Handle Problem Language Result Execution time Memory
622318 2022-08-04T07:14:13 Z kabika Utrka (COCI14_utrka) C++14
80 / 80
155 ms 11144 KB
#include <bits/stdc++.h>
using namespace std;

int main() 
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int n;
    cin >> n;
    multiset<string> st;
    
    for(int i = 0; i < n; ++i)
    {
        string nm;
        cin >> nm;
        st.insert(nm);
    }
    
    for(int i = 1; i < n; ++i)
    {
        string nm;
        cin >> nm;
        auto it = st.find(nm);
        st.erase(it);
    }
    
    cout << *st.begin() << '\n';
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 320 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 1 ms 328 KB Output is correct
5 Correct 1 ms 332 KB Output is correct
6 Correct 52 ms 5748 KB Output is correct
7 Correct 78 ms 8352 KB Output is correct
8 Correct 128 ms 10188 KB Output is correct
9 Correct 123 ms 11144 KB Output is correct
10 Correct 155 ms 11072 KB Output is correct