9462: 2001年秋浙江省计算机等级考试二级C 编程题(1)

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:0

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