Олимпиадный тренинг

Задача 29482. Ternary Search: Beginning (C++)


Задача

Темы:
Find the minimum of the \(y=x \cdot x - b \cdot x + 100\) function, where the coefficient b is entered from the keyboard.< br />  
Examples
# Input Output
1 10 5


Note
Be careful what your algorithm is looking for: maximum or minimum.