Getting wa on some cases issue with decimal precision

problem link

some cases are giving wa others are correct
I guess some issue with handling double values