Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
3-liner: against the rules solution in Creative category for Call to Home by przemyslaw.daniel
def total_cost(c):
a=sum([((x,)*-(-int(y)//60))for x,_,y in map(str.split,c)],())
return sum(x+max(x-100,0)for x in map(a.count,set(a)))
July 20, 2017