본문 바로가기

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

#66 백준 파이썬 [3052] 나머지

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

 

#Solution

num_list = []
rem_list = []

for i in range(10):
    num_list.append(int(input()))

for num in num_list:
    rem = num % 42
    if rem in rem_list:
        pass
    else:
        rem_list.append(rem)
        
print(len(rem_list))