Submission #335629

#TimeUsernameProblemLanguageResultExecution timeMemory
335629JoshcUtrka (COCI14_utrka)Cpython 3
80 / 80
390 ms17884 KiB
n = int(input())
people = {}
for i in range(n):
  a = input()
  if a not in people:
    people[a] = 1
  else:
    people[a] += 1
for i in range(n - 1):
  a = input()
  people[a] -= 1
for a in people:
  if people[a] != 0:
    print(a)
    break;
#Verdict Execution timeMemoryGrader output
Fetching results...