제출 #209573

#제출 시각아이디문제언어결과실행 시간메모리
209573DodgeBallMan마라톤 경주 (COCI14_utrka)C++14
80 / 80
352 ms18296 KiB
#include <bits/stdc++.h>

using namespace std;

map<string,int> mp, mp2;
int n;

int main()
{
    scanf("%d",&n);
    for( int i = 1 ; i <= n ; i++ ) {
        string s;
        cin >> s;
        mp[s]++;
    }
    for( int i = 1 ; i < n ; i++ ) {
        string s;
        cin >> s;
        mp2[s]++;
    }
    for( auto m : mp ) {
        if( mp2[m.first] != m.second ) {
            cout << m.first;
            return 0;
        }
    }
}

컴파일 시 표준 에러 (stderr) 메시지

utrka.cpp: In function 'int main()':
utrka.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...