Here is my code: https://www.codechef.com/viewsolution/15510067
The expected output is also produced. The output format is also correct. Please help me with the code.
Thanks a lot!
I think you should use double instead of float for 6 digit precision