Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Recent
Login
Problem2109--Count the value of the segment function
2109: Count the value of the segment function
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
139
Solved:
57
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
When x is less than 10, y is equal to 10;When x is greater than or equal to 10, y is equal to 20.This problem requires printing the y-value corresponding to the input x,x is a real number.
Input
A real number x
Output
The y-value corresponding to the input x.
Sample Input
Copy
1
Sample Output
Copy
10
Source/Category
157