Help in understanding Gold Mining Problem

I just saw that many submissions were based on simply going through each mine and distributing the gold in that mine according to the ratio between A and B.
I want to know how is this optimal. I didn’t get the slightest intuition on this approach. I thought for 2 hours but could not understand this thing.
If somebody can explain how this is working and the intuition behind it, it would really help me.

1 Like

Wait for editorial and btw for the same problem already a thread a created don’t create other one :slight_smile:

Ohh great. Thanks for telling me that. I am deleting this thread then.