Project
This commit is contained in:
10
546456.py
10
546456.py
@@ -1,10 +1,10 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
def factorial(n):
|
def f(n):
|
||||||
if n == 0:
|
if n == 1:
|
||||||
return 1
|
return 1
|
||||||
else:
|
else:
|
||||||
return n * factorial(n-1)
|
return n * f(n-1)
|
||||||
|
|
||||||
sys.setrecursionlimit(10000)
|
sys.setrecursionlimit(3000)
|
||||||
print(factorial(1000))
|
print((f(2024)-f(2023))/f(2022))
|
||||||
Reference in New Issue
Block a user