Current location - Training Enrollment Network - Mathematics courses - Farmers crossing the river
Farmers crossing the river
I have done this problem (assuming that the farmer's current position is A and the other side is B)

Problems of farmers, wolves, sheep and cabbage

First, farmers and sheep go to B.

Then the farmer returns to A alone (the sheep are in B).

Then the farmer and the cabbage went to B (at this time, the farmer, the sheep and the cabbage were all in B)

Then the farmer and sheep went to A (only cabbage was in B).

Then the farmer and the wolf went to B(A has sheep, B has cabbage and the wolf).

Then the farmer will go to A and take the sheep to B.

to be short

First, a wolf and cabbage -b farmer and sheep.

The farmer went back to a farmer, the wolf and the cabbage -B sheep.

The farmer is carrying cabbage across the river. A wolf -B farmer, sheep and cabbage.

The farmer went back with the sheep. Farmer, Wolf and Sheep-Cabbage.

The farmer led the wolf across the river. A shepherd, a wolf and cabbage.

The farmer returned to his stomach. A farmer and sheep -B Wolf and cabbage.

The farmer finally crossed the river with his sheep. A (none)-B farmers, wolves, sheep, cabbage.