Back to task

95 symbols python3
Sat Oct 29 16:13:42 2016 Sait2000
m=[0]
for _ in m*int(input()):m+=-~min(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