Back to task

89 symbols python2
Sun Jul 24 14:15:19 2016 Sait2000
m=[0]
for _ in m*input():m+=~-max(m[-j*j]for j in range(-int(len(m)**.5),0)),
print-m[~0]


Leave a comment

Parsed as Markdown

Login to leave a comment