|
More...
This is more complicated than I though initially. For example use(3, 8): First time: get 5, and you have 3, 5, 8 Second time: get 2, and you have 2, 3, 5, 8. By using 2, 3, 5, 8, you can weigh any wieght from 1 to 16.www.ddhw.com
If you know the range of the weight of the rice, you can do the following to measure the weight from 17 to 21. But this may not match the requirement of the topic. use (3,8) and first time get 3, you have 3,3,8 second time get 3, you have 3,3,3, 8. Third time you can measure 17.
use (3, 8) and first time get 5, you have 3, 5, 8 second time get 5, you have 3, 5, 5, 8. Third time you can measure 18.
use (3, 8) and first time get 5, you have 3, 5, 8 second time get 3, you have 3, 3, 5, 8. Third time you can measure 19.www.ddhw.com
Similary, get 3,3,8,8 and you can measure 20 Get 3, 5, 8,8 or 3, 8, 8, 8 you can measure 21
|
|
|