답안 #339157

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
339157 2020-12-24T17:11:19 Z ammar2000 마라톤 경주 (COCI14_utrka) C++17
80 / 80
255 ms 10604 KB
#include <bits/stdc++.h>

using namespace std;
string s;
map <string ,int > mp;
int n;
int main()
{
    cin>>n;
    int p=n-1;
    while (n--)
    {
        cin>>s;
        mp[s]++;
    }
    while (p--)
    {cin>>s;
    mp[s]--;}
    for (auto t:mp)
        if (t.second==1)
        cout <<t.first;
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 256 KB Output is correct
3 Correct 1 ms 364 KB Output is correct
4 Correct 2 ms 364 KB Output is correct
5 Correct 2 ms 364 KB Output is correct
6 Correct 109 ms 5484 KB Output is correct
7 Correct 170 ms 7788 KB Output is correct
8 Correct 220 ms 9580 KB Output is correct
9 Correct 255 ms 10604 KB Output is correct
10 Correct 250 ms 10476 KB Output is correct