UVA 11922 Permutation Transformer Splay
摘要:
DescriptionPermutation TransformerWrite 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 阅读全文
posted @ 2013-08-24 18:48 电子幼体 阅读(139) 评论(0) 推荐(0) 编辑