摘要: Description You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you 阅读全文
posted @ 2016-05-29 20:28 |瑾诺学长| 阅读(195) 评论(0) 推荐(0)
摘要: 题目描述: 大家知道,给出正整数n,则1到n这n个数可以构成n!种排列,把这些排列按照从小到大的顺序(字典顺序)列出,如n=3时,列出1 2 3,1 3 2,2 1 3,2 3 1,3 1 2,3 2 1六个排列。 任务描述: 给出某个排列,求出这个排列的下k个排列,如果遇到最后一个排列,则下1排列 阅读全文
posted @ 2016-05-29 18:50 |瑾诺学长| 阅读(354) 评论(0) 推荐(0)