#C1945. Minimum Sprinkler Radius
Minimum Sprinkler Radius
Minimum Sprinkler Radius
In this problem, you are given the dimensions of a rectangular garden defined by its top-right corner coordinates \( (x, y) \). Your task is to determine the minimum radius required for a sprinkler system to cover the entire garden if the sprinkler is placed optimally at the center of the garden.
The optimal placement is at the center \( \left(\frac{x}{2}, \frac{y}{2}\right) \). The minimum radius \( R \) required is computed as:
[ R = \sqrt{\left(\frac{x}{2}\right)^2 + \left(\frac{y}{2}\right)^2} ]
Round the result to 5 decimal places.
inputFormat
The input consists of two space-separated integers \( x \) and \( y \) representing the x-coordinate and y-coordinate of the top-right corner of the rectangular garden.
outputFormat
Output the minimum sprinkler radius required to cover the garden. The answer must be rounded to 5 decimal places.
## sample4 4
2.82843