08-05-2024, 03:45 PM
There was an underlying assumption of whole numbers I am pretty sure.
This problem is so similar to Rosetta Codes:
https://rosettacode.org/wiki/Sailors,_co...ey_problem
You can compare results 3 friends to 5 sailors, apples to coconuts and monkey to donkey.
This problem is so similar to Rosetta Codes:
https://rosettacode.org/wiki/Sailors,_co...ey_problem
You can compare results 3 friends to 5 sailors, apples to coconuts and monkey to donkey.
b = b + ...