I think there is some bug with problem A.
Problem Link
Consider these two links
link1
This one is giving me WA.
link2
This got me AC.
These solutions are exactly same except a fixed keyword which does nothing but prints fixed number of digits after decimal point. It shouldn’t give any sort of error.
Tell me if I’m wrong.