#A204. 求f(x,n)
求f(x,n)
题目描述
已知
给定x和n,求f(x,n)的值。
输入
输入和。
输出
函数值,保留两位小数。
样例
4.2 10
3.68
已知
f(x,n)=n+(n−1)+(n−2)+⋯2+1+x
给定x和n,求f(x,n)的值。
输入x和n。
函数值,保留两位小数。
4.2 10
3.68
By signing up a 黑猫OJ universal account, you can submit code and join discussions in all online judging services provided by us.