收起
n,x=map(int,input().split()) s=0 f=1 for i in range(1,n+1): t=f*x**i/(i*(i+1)) f=-f s+=t print("{:.2f}".format(s))
报告相同问题?