Submission #382635

# Submission time Handle Problem Language Result Execution time Memory
382635 2021-03-27T23:53:50 Z vulpes Utrka (COCI14_utrka) C++17
80 / 80
178 ms 11372 KB
#include <bits/stdc++.h>
using namespace std;

void solve() {
    int n; cin >> n;
    multiset<string> s;
    for (int i = 0; i < n; i++) {
        string x; cin >> x;
        s.insert(x);
    }
    for (int i = 1; i < n; i++) {
        string x; cin >> x;
        s.erase(s.find(x));
    }
    cout << *s.begin() << endl;
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0); cout.tie(0);
    solve();
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 364 KB Output is correct
4 Correct 2 ms 492 KB Output is correct
5 Correct 2 ms 492 KB Output is correct
6 Correct 69 ms 5740 KB Output is correct
7 Correct 118 ms 8428 KB Output is correct
8 Correct 169 ms 10320 KB Output is correct
9 Correct 178 ms 11264 KB Output is correct
10 Correct 177 ms 11372 KB Output is correct