Guest User

Untitled

a guest
Jun 22nd, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. def super_fibonacci(n, m):
  2.     spysok = []
  3.     l = len(spysok)
  4.     for i in range(m):
  5.         spysok.append(1)
  6.     for i in range(m, n):
  7.         listok = list[l-m:l:1]
  8.         suma = sum(listok)
  9.         spysok.append(suma)
  10.     return spysok[-1:]
  11. n = int(input('input n:'))
  12. m = int(input('input m:'))
  13. print super_fibonacci(n, m)
Advertisement
Add Comment
Please, Sign In to add comment