Problem1121--二级C++ sinx

1121: 二级C++ sinx

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

编程,输入n后:输入n个数,根据下式计算并输出y值。
     / x2-sinx    x<-2
y={  2x+x       -2<=x<=2
     |    ___________
     \ √  X2+X+1                  x>2
* 输出保留两位小数
  

Input

n
n个数

Output

y

Sample Input Copy

1
1

Sample Output Copy

3.00

Source/Category