1. 请同学们认真做题,本系统提供查重服务。
  2. 账号或者题目有问题,可以联系任课老师或者发邮件至real251024@163.com
  3. vscode下载地址:https://code.visualstudio.com/
  4. codeblocks下载地址:http://vlab.csu.edu.cn/oj/download/codeblocks-setup.exe
  5. DevC++下载地址:http://vlab.csu.edu.cn/oj/download/DevC_Setup.exe
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