Programming/Python & Data Structures
[Baekjoon/Python3] 3052번 나머지
HooNeee
2020. 12. 4. 17:22
[Baekjoon/Python3] 3052번 나머지
3052번: 나머지
39, 40, 41, 42, 43, 44, 82, 83, 84, 85를 42로 나눈 나머지는 39, 40, 41, 0, 1, 2, 40, 41, 0, 1이다. 서로 다른 값은 모두 6개가 있다.
www.acmicpc.net
# list -> for
list_num = [] # 계산된 리스트
for i in range(10):
list_num.append(str(int(input()) % 42))
list_num = set(list_num) # 집합자료형 : 중복 제거
print(len(list_num))