제출 #1264448

#제출 시각아이디문제언어결과실행 시간메모리
1264448sohamsen15마라톤 경주 (COCI14_utrka)C++20
80 / 80
87 ms8260 KiB
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);

    int n; cin >> n;
    map<string, int> m;
    for (int i = 0; i < 2 * n - 1; i++) { string s; cin >> s; m[s]++; }
    for (auto [x, y]: m) if (y % 2 == 1) { cout << x; break; }
}
#Verdict Execution timeMemoryGrader output
Fetching results...