Ответ:
# python code
from math import factorial as f
lst = input().split()
x = int(lst[0])
n = int(lst[1])
total = x
for i in range(2, n+1):
total += (x**i) / f(i)
print(round(total, 2))
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
# python code
from math import factorial as f
lst = input().split()
x = int(lst[0])
n = int(lst[1])
total = x
for i in range(2, n+1):
total += (x**i) / f(i)
print(round(total, 2))