Marc's Cakewalk

  • + 0 comments
    def marcsCakewalk(calorie):
        min_calorie = sorted(calorie, reverse=True)
        calories = 0
        for i in range(len(min_calorie)):
            calories += math.pow(2, i) * min_calorie[i]
        return int(calories)