Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Call to Home by rossras
from collections import Counter
def total_cost(calls):
c = Counter()
for call in calls:
date, _, seconds = call.split()
c[date] += -(-int(seconds)//60)
return sum(max(2*t-100, t) for t in c.values())
Feb. 1, 2020
Comments: