I think there is some bug with problem A.
Consider these two links
This one is giving me WA.
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.