title: How to find the extreme point of an equation?
body: <p>Input format: </p>
  
  <p>1.n number of coefficient, number of search query m.</p>
  
  <ol start="2">
  <li>Following there will be n space separated coefficients.</li>
  <li>Range specifying search area.</li>
  </ol>
  
  <p>Sample input:
  4 2
  8 -543 540 60</p>
  
  <p>-10 10
  80 100</p>
  
  <p>Sample output:</p>
  
  <p>0.5
  90</p>
  
  <p>Expected complexity: log(Range)</p>
  
  <p>What does the question wants me to do? I know the question sounds stupid.
  I thought that I'm asked to find out the maxima of the equation's corresponding curve. But output given here doesn't match with manually found maxima. There's hint about local and global maximum.</p>