During a party, someone starts pouring wine from -liter bottles into -liter glasses. After some time, all bottles have been emptied and all glasses have been filled.
What is the minimum possible number of filled glasses and emptied bottles, added together?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
suppose there are b bottles of wine and g glasses. Therefore 1 5 1 1 b = 1 7 2 g 2 5 5 1 8 7 b − 3 0 g = 0 1 8 7 b − 3 0 g = 0 g b = 1 8 7 3 0
So min b = 3 0 and min g = 1 8 7 and min b + g = 3 0 + 1 8 7 = 2 1 7