Red Huang

Red Huang

UVA 514

This problem is a bit tricky.

The key point is that A passes B in two ways:

  1. Directly passing by.
  2. Putting into the stack.

So, in simple terms, just simulate and see how it goes.
When you find it impossible, then it's a NO.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.