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 popomin
def total_cost(l):
import math
dic = {}
for d in l:
p = d.split(" ")
dic[p[0]] = dic.get(p[0], 0) + math.ceil(int(p[2])/60)
for n in dic.keys():
dic[n] = dic[n]*2 -100 if dic[n] > 100 else dic[n]
return sum(dic.values())
Jan. 26, 2018