Finally pour water from the full 5 gallon jug into the 3 gallon jug until the smaller jug is full. Since the 3 gallon jug already had 2 gallons of water there is room for just 1 gallon.
Fill up the 5 gallon jug 6.
Die hard 5 gallon 3 gallon.
Bruce can do the following fill jug a with 5 gallons. Transfer water from the 5 gallon jug until the 3 gallon jug is full. A 0 b 2 now he can fill jug a with 5 gallons and fill jug b with 1 gallon from jug a. A 5 b 0 now he can fill jug b with 3 gallons from jug a. A 2 b 3 he can empty jug b and empty 2 gallons from jug a to jug b. Use it to fill the 3 gallon jug leaving 2 gallons in the 5 gallon jug.
Mcclane and zeus find another bomb in central park and to disarm it they need to solve simon s riddle. Next empty the 3 gallon jug and transfer the water from the 5 gallon jug into it. Fill up the 5 gallon jug 2. Empty the 3 gallon jug and then pour in the 2 remaining gallons from the other jug. Once there are 2 gallons of water in the 3 gallon jug fill the 5 gallon jug again. To solve the water jug riddle from die hard 3 start by filling a 5 gallon jug completely to the top with water.
A psychopath who calls himself simon is detonating bombs all over new york city. 2 5 3 4 3 6 4 sample output. A fill the 5 gallon jug. Then use that water to fill a 3 gallon jug so that you re left with 2 gallons in the larger jug. Fill up the 3 gallon jug using the water from the 5 gallon jug leaving 2 gallons in the 5 gallon jug 3. Transfer the 2 gallons from the 5 gallon jug into the 3 gallon jug 5.
Pour out the 3 gallon jug into the fountain 4.