문제 출처
풀이
N = int(input())
nums = list(map(int, input().split()))
B, C = map(int, input().split())
tot = 0
for num in nums:
num -= B
tot += 1
if num > 0:
val, left = num // C, num % C
if left:
tot += val + 1
else:
tot += val
print(tot)
'백준' 카테고리의 다른 글
[python] 2422. 한윤정이 이탈리아에 가서 아이스크림을 사먹는데 (0) | 2019.08.08 |
---|---|
[python] 2309. 일곱 난쟁이 (0) | 2019.08.05 |
[python] 14500. 테트로미노 (0) | 2019.08.04 |
[python] 17444. 미세먼지 안녕! (0) | 2019.08.04 |
[python] 16234. 인구 이동 (0) | 2019.07.27 |