Submission #577152

# Submission time Handle Problem Language Result Execution time Memory
577152 2022-06-14T07:57:09 Z MilosMilutinovic Utrka (COCI14_utrka) C++14
80 / 80
141 ms 10320 KB
#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 time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 320 KB Output is correct
3 Correct 1 ms 324 KB Output is correct
4 Correct 1 ms 400 KB Output is correct
5 Correct 2 ms 464 KB Output is correct
6 Correct 62 ms 5268 KB Output is correct
7 Correct 93 ms 7828 KB Output is correct
8 Correct 125 ms 9476 KB Output is correct
9 Correct 121 ms 10320 KB Output is correct
10 Correct 141 ms 10300 KB Output is correct