프로그래밍_일반/백준
boj 1350
Spadework
2020. 2. 28. 09:22
* Solved 기준 브론즈2 단순 풀이
input(); l = map(int, input().split())
c,s = int(input()),0
for i in l:
s += i//c*c + (c if i%c else 0)
print(s)