Introduction - If you have any usage issues, please Google them yourself
In a train dispatching station, one track is connected to one side rail, forming a railway track stack as shown in the figure below.
The left track is the entrance of the car, the right track is the exit, the number is 1, 2,... N of n of the car comes in the entrance
In the transition stack, it is arranged by the control room to arrange the car in and out of the stack order, and then recompile the sequence a, a, an 1, 2 61516, according to the stack order of the car.
Packet : 107215777stacks.rar filelist
stacks\input.txt
stacks\stacks.cpp
stacks