在 线 评 测 系 统
Toggle navigation
HNUAHE-OJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1125--分段函数(选择结构练习)
1125: 分段函数(选择结构练习)
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
Solved: 0
Submit Num: 0
Statistics
ShowOff!
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
使用函数
Source/Category
admin