#136. 分段函数
分段函数
Description
计算如下函数值。保证x是整数。
$$ f(x)=\left\{ \begin{aligned} & 0 & \ x< 0 \\ & 2 \times x & \ 0 \leq x <10 \\ & 2x+1 & \ 10 \leq x < 50 \\ & x \div 2 +50 & \ 50 \leq x \end{aligned} \right. $$Input Format
一个整数x。
Output Format
一个保留4位小数的实数。
Sample
input
53
output
76.5000
Hint
保证。
时间限制:
空间限制:
Related
In following contests: