← Back to List

16427번: Time Limits ↗

Solutions

Python 3
136 B | 136 chars
n,s = map(int,input().split())
M = max(list(map(int,input().split())))
K = s*M
ans = (s*M)//1000
if (s*M)%1000 >0:
    ans+=1
print(ans)