Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Saw the Stick by Ylliw
T=[int(i*(i+1)/2) for i in range(1,int((2*1000)**.5)+2)]
def checkio(n):
for l in range(int((2*n)**.5)+2,0,-1):
i=0
while True:
s=sum(T[i:i+l])
if s
Dec. 12, 2017