some cases are giving wa others are correct
I guess some issue with handling double values
problem link
some cases are giving wa others are correct
I guess some issue with handling double values
problem link
yup passed all test cases but the precision thing wasnt mentioned in the question . So how do I get the idea regarding how much precsion to set??
in most of the questions ,they will make it very clear.
for this problem look at sample teest case 3 , it gives decent idea that answer must be very precise to pass test casees.