K12教育赛事综合服务平台
专注青少年竞赛题库网站
聚乐之家官方网站
下载聚乐之家官方App
def qh(n): s , f = 0,1 for i in range(1,n+1): s += f * i f = -f return s print(qh(4))
10
2
-2
-10