1
2
3
4
5
6
7
8
9
10
|
import math
cnt=0
n=int(input())
ai=list(map(int, input().split()))
b,c=map(int, input().split())
for i in range(n):
cnt+=1
if ai[i]-b>0 :
cnt+=math.ceil((ai[i]-b)/c)
print(cnt)
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
[백준] 14471 (0) | 2021.01.14 |
---|---|
[백준] 14219 (0) | 2021.01.14 |
[백준] 13420 (0) | 2021.01.14 |
[백준] 13419 (0) | 2021.01.14 |
[백준] 13410 (0) | 2021.01.14 |
댓글