답안 #241150

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
241150 2020-06-23T06:30:01 Z brau13 마라톤 경주 (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
# 결과 실행 시간 메모리 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