답안 #659985

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
659985 2022-11-20T07:17:04 Z ajthelegendcoder 마라톤 경주 (COCI14_utrka) C++17
80 / 80
189 ms 10376 KB
#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin >> n;
    map<string,int> mp;
    int n2 = 2*n - 1;
    while(n2--){
        string name;
        cin >> name;
        mp[name]++;
    }
    
    for(auto m : mp){
        if(m.second % 2 == 1) cout << m.first;
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 296 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 2 ms 340 KB Output is correct
5 Correct 2 ms 312 KB Output is correct
6 Correct 74 ms 5340 KB Output is correct
7 Correct 142 ms 7884 KB Output is correct
8 Correct 158 ms 9456 KB Output is correct
9 Correct 189 ms 10376 KB Output is correct
10 Correct 177 ms 10280 KB Output is correct