반응형
제출한 코드
num = int(input())
num_list = list()
num_list.append(num%42)
for i in range(1, 10):
num = int(input())
if (num_list.count(num%42)) == 0 :
num_list.append(num%42)
print(len(num_list))
결과

후기
반응형
'BQJ 백준 > python' 카테고리의 다른 글
[Python/파이썬] 백준 3765번: Celebrity jeopardy (0) | 2024.08.02 |
---|---|
[Python/파이썬] 백준 3003번: 킹, 퀸, 룩, 비숍, 나이트, 폰 (0) | 2024.07.17 |
[Python/파이썬] 백준 2941번: 크로아티아 알파벳 (0) | 2024.07.17 |
[Python/파이썬] 백준 2920번: 음계 (0) | 2024.07.17 |
[Python/파이썬] 백준 2908번: 상수 (0) | 2024.07.12 |