摘要: DescriptionWrite a program to transform the permutation1, 2, 3,...,naccording tominstructions. Each instruction(a,b)means to take out the subsequence from thea-th to theb-th element, reverse it, then append it to the end.InputThere is only one case for this problem. The first line contains two integ 阅读全文
posted @ 2013-07-27 18:27 Oyking 阅读(434) 评论(0) 推荐(0)