Submission #969629

# Submission time Handle Problem Language Result Execution time Memory
969629 2024-04-25T11:35:02 Z RandomUser Utrka (COCI14_utrka) C++17
80 / 80
122 ms 10352 KB
#include <bits/stdc++.h>
using namespace std;

int32_t main() {
    int n;
    cin >> n;

    map<string, int> mp;
    string s;
    for(int i=0; i<n; i++) {
        cin >> s;
        mp[s]++;
    }

    for(int i=0; i<n-1; i++) {
        cin >> s;
        mp[s]--;
    }

    for(auto &[str, cnt] : mp) {
        if(cnt > 0) {
            cout << str << '\n';
            return 0;
        }
    }

    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 2 ms 348 KB Output is correct
4 Correct 2 ms 344 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 55 ms 5496 KB Output is correct
7 Correct 98 ms 8056 KB Output is correct
8 Correct 111 ms 9456 KB Output is correct
9 Correct 122 ms 10324 KB Output is correct
10 Correct 122 ms 10352 KB Output is correct