WA in CDFXOQ16

Why does this solution give WA for this problem ?

I looked at the accepted codes after the contest , all of them use the same formula i used .

2 Likes

Because they asked you to print “Print the probability that Ayush will win the match upto 5 decimal places.
Cost me 1 WA.

Why is answer ps / ( qr + ps - pr ) ?

//