시험 감독
너무 쉬운 문제.
In [1]:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from sys import stdin
stdin = open('data/supervisor.txt')
input = stdin.readline
n = int(input())
a = list(map(int, input().split()))
b, c = map(int, input().split())
a = list(map(lambda x: x - b if x >= b else 0, a))
# print(a)
ans = n
for e in a:
d, r = e // c, e % c
if r: ans += d + 1
else: ans += d
print(ans)
1
2
10
Leave a comment