답안 #622672

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
622672 2022-08-04T13:15:57 Z KK_1729 마라톤 경주 (COCI14_utrka) Python 3
80 / 80
307 ms 17904 KB
n = int(input())
o = {}
for _ in range(n):
    a = input()
    if o.get(a):

        o[a] += 1
    else:
        o[a] = 1
for _ in range(n-1):
    a = input()



    o[a] -= 1
for key, value in o.items():
    if value:print(key)
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 2772 KB Output is correct
2 Correct 14 ms 2772 KB Output is correct
3 Correct 14 ms 2868 KB Output is correct
4 Correct 16 ms 2968 KB Output is correct
5 Correct 16 ms 2908 KB Output is correct
6 Correct 148 ms 10428 KB Output is correct
7 Correct 218 ms 11760 KB Output is correct
8 Correct 263 ms 13120 KB Output is correct
9 Correct 291 ms 17724 KB Output is correct
10 Correct 307 ms 17904 KB Output is correct