During solving this problem, when i submitted the following code with c++ setprecision function i got Wrong answer on test 5.
Code
And later the following one got accepted without setprecision.
Code
My question is, what i did wrong in the first one?
Thank You...