Description: A train carriages were sent to N N stations, railway stations, in the order of number 1-N, the train in accordance with N, N-1, .... number sequence 1 through the station, it is assumed that the number of the car to its destination number of the station. Given an arbitrary Priorities car, rearranges the car, it arranged in order 1 to N, predetermined rearrangement only orbit to buffer rails, or derailed the track buffer. Restrictions: There is an orbit, a derailment, K buffer strip rail (1≤K≤N-1)
To Search:
File list (Check if you may need any files):
huochechongpai.txt