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

Function fac

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

Source from the content-addressed store, hash-verified

12 return a
13
14def fac(n):
15 res = _sage_const_1
16 for i in range(_sage_const_1 ,n+_sage_const_1 ):
17 res *= i
18 return res
19
20def cdiv(x, y):
21 return abs(x) / abs(y) * cmp(x, _sage_const_0 ) * cmp(y, _sage_const_0 )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected