Alignment
Time Limit: 1000MS | Memory Limit: 30000K | |
Total Submissions: 17559 | Accepted: 5778 |
Description
In the army, a platoon is composed by n soldiers. During the morning inspection, the soldiers are aligned in a straight line in front of the captain. The captain is not satisfied with the way his soldiers are aligned; it is true that the soldiers are aligned in order by their code number: 1 , 2 , 3 , . . . , n , but they