Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Straightforward solution in Clear category for Call to Home by nickie
def total_cost(calls):
total = {}
for call in calls:
[day, time, sec] = call.split()
total[day] = total.get(day, 0) + (int(sec) + 59) // 60
return sum(2*duration - min(duration, 100) for duration in total.values())
Feb. 13, 2015