eolymp
bolt
Try our new interface for solving problems
Problems

Conditional statement - 2

Conditional statement - 2

Find the value of $y$ according to the following condition: $$ y = \begin{cases} x^3 + 5x, x \ge 10 \\ x^2 - 2x + 4, x < 10 \end{cases} $$ \InputFile One integer $x~(-10^4 \le x \le 10^4)$. \OutputFile Print the value of $y$ according to the given condition.
Time limit 1 second
Memory limit 128 MiB
Input example #1
2
Output example #1
4
Input example #2
20
Output example #2
8100