[Community Puzzle] The leaking bathtub

Hello, any hints on validator #4, please? I pass all tests and other validators but fail this one. Tried playing around with precision and edge cases without success.

Great puzzle overall but would really benefit from having more test cases, it’s not a good sign when multiple people report passing all tests and failing validators.

Do the custom cases here help you? If not, you may send me your code in private message and I’ll try to come up with a custom case for you.

Ugh.
non-integer math. :face_vomiting:

Although, it can be done in integers if your GCDs and LCMs are up to speed!

Use fractions, it’s integer maths. :muscle: