본문 바로가기

Programming [Python]/백준 알고리즘 솔루션

#273 백준 파이썬 [5597] 과제 안 내신 분..?

https://www.acmicpc.net/problem/5597

 

Python Code

students = [i for i in range(1,31)]

for _ in range(28):
    applied = int(input())
    students.remove(applied) #소거

print(min(students))
print(max(students))