1966: 【信息学奥赛一本通】求f(x,n)

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:34 Solved:28

Description

已知

f(x,n)=n+(n−1)+(n−2)+...+2+1+x

计算x=4.2,n=10以及x=2.5,n=15时的f的值。

Input

输入xn

Output

函数值,保留两位小数。

Sample Input Copy

4.2 10

Sample Output Copy

3.68