본문 바로가기
백준 문제풀이

baekjoon - python - 5597

by winston1214 2020. 12. 6.
반응형

www.acmicpc.net/problem/5597

# @Author YoungMinKim
# baekjoon

import sys
dic = {}
for i in range(1,31):
    dic[i] = 1
for j in range(28):
    x = int(sys.stdin.readline())
    if x in dic:
        dic[x]=2
result = sorted(dic.items(),key=(lambda x: x[0]))
for i in result:
    if i[1] == 1:
        print(i[0])
반응형

'백준 문제풀이' 카테고리의 다른 글

baekjoon - python - 1297  (0) 2020.12.07
baekjoon - python - 2566  (0) 2020.12.06
baekjoon - python - 1735  (0) 2020.11.24
baekjoon - python - 9093  (0) 2020.11.22
baekjoon - python - 6603  (0) 2020.11.02

댓글