Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Call to Home by ablikexe
def total_cost(calls):
total = {}
for call in calls:
day, _, t = call.split()
total[day] = (int(t)+59)//60 + total.get(day,0)
return sum(x if x<=100 else 2*x-100 for x in total.values())
July 29, 2014
Comments: