Fixed Product Minimum Sum - A Proposed New Problem

Back to General discussions forum

CSFPython     2025-01-10 08:30:03

Simple arithmetic and careful thought are all that is needed here.

Rodion (admin)     2025-01-10 11:28:16
User avatar

Clive, thank you!

Problem is ready - by the way now your data generation code creates 3 test-cases - I suppose that's enough?

CSFPython     2025-01-10 12:03:24

Rodion,

Thanks for posting the problem. I decided that 3 test cases were sufficient for this one.

TestUser     2025-01-10 21:31:26
User avatar

Dear Clive, thank you for clarification!

As it happens, I feel bewildered. While initially I thought "fractional" version is harder, I solved it first, but with the "integer" one... After several attempts I wrote solution which I don't quite understand - and while it passed once, it seemingly fails on some different input sets. Hopefully I can figure out what is wrong in the morn (and perhaps, why and whether it works at all).

Please login and solve 5 problems to be able to post at forum