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

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

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 1  Solved: 1
[Status] [Submit] [Creator:]

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