#P1005. Segment Functions——分段函数
Segment Functions——分段函数
Statement
Given an integer , find the value of the following function:
$$f(x)= \left\{\begin{matrix} x~(1<x<5) \\ x^2~(5\leq x<10) \\ \sqrt{x+\sin x} ~ (x\geq 10) \end{matrix}\right. $$Input
Input a single integer on one line.
Output
Output the function expression, retaining only integers.
Samples
7
14
114514
114514
Notes
, and each edge length is input with no more than decimal places.