1045: C++语言 分段函数5.5

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:67 Solved:55

Description

有一个函数
y={ x      x<1
    | 2x-1   1<=x<10
    \ 3x-11  x>=10
写一段程序,输入x,输出y

Input

一个数x

Output

一个数y

Sample Input Copy

14

Sample Output Copy

31

HINT

使用函数