Introduction - If you have any usage issues, please Google them yourself
There which stay, bear, tiger, tiger, leopard and old, small leopard to cross the river, the river is only one boat, due to small boat, each boat can only take one arm stroke and one passenger, which stay only animals, tigers, old leopard and the bear can be boating, when the old beast is not, it will be other small animals eat the old beast, you design a program that allows all animals to cross the river as soon as possible.