답안 #16362

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
16362 2015-08-21T15:14:46 Z eaststar 마라톤 경주 (COCI14_utrka) C++14
80 / 80
296 ms 11888 KB
#include <bits/stdc++.h>
using namespace std;
char c[30];
map<string,int> a;
int main(){
    int i,n;
    scanf("%d",&n);
    for(i=1;i<=n;++i){
        scanf("%s",c);
        string w;
        w+=c;
        ++a[w];
    }
    for(i=1;i<n;++i){
        scanf("%s",c);
        string w;
        w+=c;
        --a[w];
    }
    for(auto x:a)if(x.second)printf("%s",x.first.c_str());
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1724 KB Output is correct
2 Correct 0 ms 1724 KB Output is correct
3 Correct 0 ms 1724 KB Output is correct
4 Correct 0 ms 1724 KB Output is correct
5 Correct 2 ms 1724 KB Output is correct
6 Correct 134 ms 6872 KB Output is correct
7 Correct 219 ms 9380 KB Output is correct
8 Correct 254 ms 10964 KB Output is correct
9 Correct 266 ms 11888 KB Output is correct
10 Correct 296 ms 11888 KB Output is correct