This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2025-10-05 14:22:40 +05:00
parent 352cdf84be
commit a424c26142
3 changed files with 8 additions and 7 deletions

1
24_7.txt Normal file

File diff suppressed because one or more lines are too long

View File

@@ -1,10 +1,10 @@
import sys
def factorial(n):
if n == 0:
def f(n):
if n == 1:
return 1
else:
return n * factorial(n-1)
return n * f(n-1)
sys.setrecursionlimit(10000)
print(factorial(1000))
sys.setrecursionlimit(3000)
print((f(2024)-f(2023))/f(2022))

4
f.py
View File

@@ -1,2 +1,2 @@
a=[2,4,4,5,3,3,3]
print(round(sum(a)/len(a),2))
a=['']
print(max(a))