Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Restricted Sum by maartiin01
class acum:
def __init__(self):
self.val = 0
def checkio(data):
ac = acum()
list(map(lambda x: ac.__setattr__('val', ac.val + x), data))
return ac.val
Aug. 26, 2018