[백준] 3052번 : 나머지 - Python(파이썬)

강재원·2022년 10월 27일
0

[코딩테스트] Python

목록 보기
158/200



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

num=[0]*42
count=0
for i in range(10):
    a=int(input())
    num[a%42]+=1
for i in range(42):
    if num[i]>0: count+=1
print(count)
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글