Rescuer

medium
<a href="https://www.hackerearth.com/problem/algorithm/rescuer-2d2495cb/" target="_blank"><i class="fa fa-external-link" aria-hidden="true"> Link -> Rescuer</i></a>

Input Format

check the link

Output Format

check the link

Constraints

check the link

Example

Input
1
3 -20 3 25 40 5
Output
5.50000
Previous
Building Construction
Next
Race Time!

Related Questions