MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / fib

Function fib

code/mathematics/intx.test.gen.py:8–12  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

6import random
7
8def fib(n):
9 a,b = _sage_const_0 ,_sage_const_1
10 for i in range(n):
11 a,b = b,a+b
12 return a
13
14def fac(n):
15 res = _sage_const_1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected