Files
maps-comp/sample/banana_1.py
T
Justin Lin 8582780ac9 commit
2026-05-02 15:42:52 +10:00

8 lines
132 B
Python

import math
n, c = map(int, input().split())
a = [int(input()) for _ in range(n)]
packs = math.ceil(sum(a) / 10)
print(packs * c)