Skip to content

Commit 0d20717

Browse files
committed
[BOJ] 시험 감독 / 브론즈2 / 10분
https://www.acmicpc.net/problem/13458
1 parent ce3ee41 commit 0d20717

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
N = int(input())
3+
4+
arr = list(map(int,input().split()))
5+
6+
B,C = map(int,input().split())
7+
8+
answer = 0
9+
10+
for i in range(N):
11+
arr[i] = arr[i] - B
12+
answer += 1
13+
if arr[i] <= 0:
14+
continue
15+
16+
answer += arr[i] // C
17+
if arr[i] % C != 0:
18+
answer += 1
19+
20+
21+
print(answer)

0 commit comments

Comments
 (0)