Disclaimer: this post is not for discussion of the problem GEO1, I just want to confirm if the test cases are correct…
For the sample cases given, I’m getting output as:
9.0000000000
9.9142135624
236.9852813742
whereas the sample output is bit different, so I want to just confirm from anyone who have solved this…
Also, I get my result as shown below. So, I think my output is correct, as 2 AC’s are impossible with a code that is failing sample cases