Advertisement
marvk

Untitled

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