Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simpler solution in Clear category for Call to Home by thealfest1
def total_cost(calls):
d = dict()
for key, _, val in (line.split() for line in calls):
d[key] = d.get(key, 0) + (int(val)+59)//60
return sum(n + (n - 100) * (n > 100) for n in d.values())
Feb. 4, 2019
Comments: