2015_하_1_L4

Nitroblue 1·2025년 8월 15일

삼성 기출 풀이

목록 보기
2/73
n = int(input())
customers = list(map(int, input().split()))
m, s = map(int, input().split())

answer = 0
for i in range(n):
    rest = customers[i] - m
    answer += 1
    if rest > 0:
        answer += rest // s
        if rest % s > 0 :
            answer += 1

print(answer)

0개의 댓글