n_list, s_list, x_list = [], [], []
count = 0
for i in range(10):
    n = int(input())
    n_list.append(n) # n_list에 입력 값 추가
    s_list.append(n%42) # s_list에 입력 값을 42로 나눈 나머지 값 추가

x_list = set(s_list) # s_list에 중복 값 제거 
print(len(x_list))

def solution(n, m):
    a, b = n, m
    while m != 0:
        result = m
        n, m = m, n % m
    answer = [result, int(a*b/result)]
    return answer

def solution(s):
    if len(s) == 4 or len(s) == 6:
        try:
            if int(s):
                return True
        except:
            return False
    else:
        return False

def solution(arr1, arr2):
    answer = list()
    x, y = len(arr1), len(arr2[0])
    for i in range(x):
        tmp = []
        for j in range(y):
            tmp.append(arr1[i][j] + arr2[i][j])
        answer.append(tmp)
    return answer

+ Recent posts