Submission #541613

# Submission time Handle Problem Language Result Execution time Memory
541613 2022-03-23T21:18:09 Z Olympia Utrka (COCI14_utrka) C++17
0 / 80
0 ms 212 KB
#include <vector>
#include <algorithm>
#include <iostream>
#include <set>
#include <cmath>
#include <map>
#include <random>
#include <cassert>
#include <ctime>
#include <cstdlib>
#include <limits.h>

using namespace std;
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int N; cin >> N;
    set<string> s;
    for (int i = 0; i < N; i++) {
        string x; cin >> x;
        s.insert(x);
    }
    for (int i = 0; i < N - 1; i++) {
        string x; cin >> x;
        s.erase(x);
    }
    cout << *(s.begin());
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -