Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Recent
Login
Problem K: 计算分段函数的值
Problem K: 计算分段函数的值
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
439
Solved:
308
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
编写程序,求下面分段函数的值,要求x的值从键盘输入。
请使用双精度浮点数进行计算,输出保留三位小数。
Sample Input
3.500
Sample Output
5.500