Advertisement
marvk

Untitled

Oct 9th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. N=readline()
  2. r=N<2?1:"1 1"
  3. a=[1,1]
  4. for(n=2;n<N;){r+=" "+(a[n]=a[(c=a[n-1])-1]+a[n++-c])}print(r)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement