답안 #76843

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
76843 2018-09-18T15:36:00 Z win11905 마라톤 경주 (COCI14_utrka) C++11
80 / 80
345 ms 18680 KB
#include <bits/stdc++.h>
using namespace std;

int main() {
    multiset<string> S;
    int n; cin >> n;
    for(int i = 0; i < n; ++i) {
        string now; cin >> now;
        S.emplace(now);
    }
    for(int i = 1; i < n; ++i) {
        string now; cin >> now;
        S.erase(S.find(now));
    }
    cout << *S.begin() << '\n';
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 376 KB Output is correct
2 Correct 2 ms 488 KB Output is correct
3 Correct 3 ms 648 KB Output is correct
4 Correct 4 ms 648 KB Output is correct
5 Correct 5 ms 680 KB Output is correct
6 Correct 146 ms 6136 KB Output is correct
7 Correct 223 ms 9828 KB Output is correct
8 Correct 297 ms 13428 KB Output is correct
9 Correct 345 ms 16404 KB Output is correct
10 Correct 324 ms 18680 KB Output is correct