Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Call to Home by saklar13
def total_cost(calls):
days = {}
for call in calls:
day, _, duration = call.split()
duration = (int(duration) + 59) // 60
days[day] = days.get(day, 0) + duration
return sum(max(x, x*2 - 100) for x in days.values())
Jan. 5, 2015
Comments: