제출 #577152

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

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  map<string, int> cnt;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    cnt[s] += 1;
  }
  for (int i = 0; i < n - 1; i++) {
    string s;
    cin >> s;
    cnt[s] += 1;
  }
  for (auto &p : cnt) {
    if (p.second & 1) {
      cout << p.first << '\n';
    }
  }
  return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...