fork download
  1. n = 100+1
  2. a = [0] * n
  3. a[5] = 1
  4. for i in range(6, n):
  5. a[i] = a[i-1] + a[i-2] + i%2
  6. print(a[n-1])
Success #stdin #stdout 0.02s 9040KB
stdin
Standard input is empty
stdout
83621143489848422976