Uh oh... I trusted several outputs with my input format, where I couldn't tell it was mistaken. I think this is a seriously misleading and should be addressed.
Replacing the fraction with x / y
yields 0
, which makes no sense, yet w / z
works as expected. In the original fraction, WA arbitrarily setting x=0
instead of just leaving it as x + y
also makes no sense.
You appear to be correct, thanks! where x = A*y, z = B*w
also works.
(Let me know if I can "accept" a post like on Github or Stack Exchange, as the resolution)