Docoding OJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
Register
1103: 二级C++ sinx
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:14
Solved:10
Submit
Submit Record
Statistics
ShowOff!
Description
编程,输入n后:输入n个数,根据下式计算并输出y值。
/ x
2-
sinx x<-2
y={ 2
x
+x -2<=x<=2
| ___________
\
√ X
2
+X+1 x>2
* 输出保留两位小数
Input
n
n个数
Output
y
Sample Input
Copy
1 1
Sample Output
Copy
3.00
Source/Category
c++
数学函数
Submit
Submit Record
Statistics
ShowOff!