Problem V: 2-选择结构-分段函数求解

Problem V: 2-选择结构-分段函数求解

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 34  Solved: 34
[Submit] [Status] [Web Board] [Creator:]

Description

有一个分段函数
y={ x              x<1
    | 2x-1         1<=x<10
    \ 3x-11       x>=10

写一段程序,输入x,输出y


Input

一个整数x

Output

一个数y

Sample Input

14

Sample Output

31

HINT

使用函数

[Submit][Status]