Description: The train station next to a bridge, the bridge piers for river levels around the rotation. The station staff found that the length of the bridge can only accommodate two cars, if the bridge rotated 180 degrees, you can put two cars adjacent to the location of the exchange, this way you can rearrange the order of cars. So he takes responsibility for the bridge to stop the car by car number from small to large order. After his retirement, the railway station decided to automate this work, one important task is to compile a program, enter the initial order of the cars, calculate how many steps will be able to at least train with sorted.
To Search:
File list (Check if you may need any files):
carry\新建文件夹\carry.bak
.....\..........\carry.pas
.....\新建文件夹
carry