#B2619. Course Price Optimization
Course Price Optimization
Course Price Optimization
According to predictions from Gugu Network School, when the course price is \(110\) yuan, 10 students enroll. For every 1 yuan decrease in the course price, the number of enrollees increases by 1 (and vice versa). Given that the total tuition collected should be \(3500\) yuan, determine the course price.
The relationship can be modeled by the equation:
\(x \times (10 + (110 - x)) = 3500\), i.e. \(x \times (120 - x) = 3500\).
This quadratic equation provides two solutions. You are required to output the smaller solution. If the answer is not an integer, round it to the nearest integer using standard rounding.
inputFormat
No input is required for this problem. All necessary parameters are fixed in the problem statement.
outputFormat
Output a single integer representing the course price that meets the requirement.
sample
50