scientific_comp_projects/CODE/[python]kattis/trivial/modulo.py
2021-10-29 15:16:40 +02:00

15 lines
380 B
Python

from functools import reduce
numbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
modulo = 42
nbr_mod = []
for i in range(10):
numbers[i] = int(input())
test = numbers[i] % modulo
if len(nbr_mod) != 0 :
lista = list(map(lambda x : x == test,nbr_mod))
if not any(lista):
nbr_mod.append(test)
else :
nbr_mod.append(test)
print(len(nbr_mod))