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 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))

4
f.py
View File

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