Submission #241150

# Submission time Handle Problem Language Result Execution time Memory
241150 2020-06-23T06:30:01 Z brau13 Utrka (COCI14_utrka) Python 3
80 / 80
505 ms 17980 KB
n = int(input())
people = {}
for i in range(2*n - 1):
  j = input()
  if j in people:
    people[j] += 1
  else:
    people[j] = 1
 
for person in people.keys():
  if people[person] % 2 != 0:
    print(person)
    break
# Verdict Execution time Memory Grader output
1 Correct 24 ms 3308 KB Output is correct
2 Correct 25 ms 3308 KB Output is correct
3 Correct 27 ms 3308 KB Output is correct
4 Correct 28 ms 3412 KB Output is correct
5 Correct 29 ms 3412 KB Output is correct
6 Correct 253 ms 10724 KB Output is correct
7 Correct 405 ms 12084 KB Output is correct
8 Correct 458 ms 13356 KB Output is correct
9 Correct 500 ms 17980 KB Output is correct
10 Correct 505 ms 17980 KB Output is correct