출처 | https://www.acmicpc.net/problem/11047
N,K = map(int,input().split()) arr = [] cnt = 0 for i in range(N): # 10 arr.append(int(input())) arr.sort(reverse = True) for i in arr: cnt += K // i K = K % i print(cnt)