编辑代码
Python代码
3.11.0
2.7.17
运行
def
f(m,n):
a
=
0
for
i in range(
1
,n+
1
):
a
=a+pow(i,m)
return
a
s
=f(
1
,
100
)+f(
2
,
50
)+f(-
1
,
10
)
print
(s)