Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Not one liner solution in Clear category for Call to Home by martin_b
from collections import defaultdict
def total_cost(calls):
m = defaultdict(int)
for c in calls:
m[c[:10]] += (int(c[20:]) + 59) // 60
return sum(2 * i - 100 if i > 100 else i for i in m.values())
Feb. 10, 2019