답안 #969633

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
969633 2024-04-25T11:37:49 Z RandomUser 마라톤 경주 (COCI14_utrka) C++17
80 / 80
129 ms 8236 KB
#include <bits/stdc++.h>
using namespace std;

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

    map<string, int> mp;
    string s;
    for(int i=0; i<2*n-1; i++) {
        cin >> s;
        if(i < n) mp[s]++;
        else mp[s]--;
    }

    for(auto &[S, C] : mp)
        if(C > 0) cout << S << '\n';

    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 2 ms 348 KB Output is correct
6 Correct 61 ms 4600 KB Output is correct
7 Correct 87 ms 6072 KB Output is correct
8 Correct 119 ms 7760 KB Output is correct
9 Correct 120 ms 8236 KB Output is correct
10 Correct 129 ms 8016 KB Output is correct