原题: In the movie “Die Hard 3”, Bruce Willis and Samuel L. Jackson were confronted with the following puzzle. They were given a 3-gallon jug and a 5-gallon jug and were asked to fill the 5-gallon jug
参考:https://www.cnblogs.com/devymex/archive/2010/08/04/1792288.html Time limit: 3.000 seconds Background In the movie "Die Hard 3", Bruce Willis and Samuel L. Jackson were confronted with the