Problem1844--小帅的函数(20分)

1844: 小帅的函数(20分)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

编程计算y=f(x)的程序,其中:

y=x*x        x<1

y=2x-1       1<=x<10

y=3x-12      x>=10

Input

多组样例输入一个整数x,确保xy均小于int的范围 

Output

输出相对应的函数值 

Sample Input Copy

10
0

Sample Output Copy

18
0

Source/Category