Back to task

92 symbols python2
Sun Jul 24 14:07:31 2016 Sait2000
m=[0]
for _ in[0]*input():m+=~-max(m[-j*j]for j in range(1,1+int(len(m)**0.5))),
print-m[-1]


Leave a comment

Parsed as Markdown

Login to leave a comment