제출 #866073

#제출 시각아이디문제언어결과실행 시간메모리
866073mamion마라톤 경주 (COCI14_utrka)C++11
80 / 80
169 ms42836 KiB
#include<bits/stdc++.h>
using namespace std;

const int N = 1e6;
int n; 
map<string, int> m;
string s[N];

int main() {
    cin >> n;
    for (int i = 1; i <= n; i++) {
        cin >> s[i];
        m[s[i]]++;
    }
    for (int i = 1; i < n; i++) {
        string ss; cin >> ss;
        m[ss]--;
    }
    for (int i = 1; i <= n; i++) {
        if (m[s[i]] == 0) continue;
        cout << s[i];
        return 0;
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...