Back to Problem Solutions forum
To me it looks like the example is incorrect for the "200 500" case and the answer should be 10, not 9. Data to check (pig breasts, pigs, girls). Thanks. (10, 50, 0) (14, 30, 40) (16, 25, 50) (24, 15, 70) (34, 10, 80) (54, 6, 88) (64, 5, 90) (104, 3, 94) (154, 2, 96) (304, 1, 98)
I think there has to be at least one girl, that watches over the pigs. So the first solution (10,50,0) would be none.