SHARE
TWEET

Untitled

marvk Oct 9th, 2015 101 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)
RAW Paste Data
Top