백준 3052, 1546 #3052 number = [] for i in range(10): number.append(int(input())%42) print(len(set(number))) set 함수는 중복 숫자를 없애준다. #1546 n = int(input()) score = list(map(int,input().split())) m = max(score) sum = 0 for i in score: a = i/m*100 sum += a print(sum/n) Deep Learning/Algorithm 2022.03.31
백준 10757, 10871 #10747 m, n = map(int, input().split()) print(m+n) N,X = map(int,input().split()) list_N = list(map(int,input().split())) list_a = [] for i in range(N): if (list_N[i] < X): list_a.append(list_N[i]) for i in list_a: print(i , end =" ", sep=" ") Deep Learning/Algorithm 2022.03.31