Hacker News new | ask | show | jobs
by flir 1073 days ago
Interesting approach. 3.5 gave me this as its second answer:

1. Fill the 6 liter jug to its maximum capacity. 2. Pour the contents of the 6 liter jug into the 12 liter jug, which will leave 6 liters in the 6 liter jug. 3. You have now measured out exactly 6 liters of water using the 6 liter jug.

1 comments

Yeah 3.5 still can't figure it out, 4 does though. Hilariously 3.5 gave me this:

Fill the 6-liter jug completely with water. Pour the water from the 6-liter jug into the 12-liter jug. Fill the 6-liter jug again with water. Pour water from the 6-liter jug into the 12-liter jug until the 12-liter jug is full. This leaves 4 liters of water in the 6-liter jug. Empty the 12-liter jug. Pour the 4 liters of water from the 6-liter jug into the empty 12-liter jug. Fill the 6-liter jug with water again. Pour water from the 6-liter jug into the 12-liter jug until the 12-liter jug is full. This leaves exactly 6 liters of water in the 12-liter jug.