Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Counter solution in Clear category for Call to Home by Sim0000
from collections import Counter
def total_cost(calls):
db = Counter()
for call in calls:
day, time, duration = call.split()
db[day] += (int(duration) + 59) // 60
return sum(min if min < 100 else 2*min-100 for min in db.values())
May 21, 2014
Comments: