摘要: 题目描述: 大家知道,给出正整数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 @ 2017-11-14 23:25 Roni_i 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Julius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself alive. In order for him to survive, 阅读全文
posted @ 2017-11-14 22:28 Roni_i 阅读(282) 评论(0) 推荐(0) 编辑
摘要: D. Restoration of string time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Restoration 阅读全文
posted @ 2017-11-14 10:40 Roni_i 阅读(303) 评论(0) 推荐(0) 编辑
摘要: C. Petya and Catacombs time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Petya and Catac 阅读全文
posted @ 2017-11-14 10:34 Roni_i 阅读(475) 评论(0) 推荐(1) 编辑
摘要: B. Vlad and Cafes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Vlad and Cafes time 阅读全文
posted @ 2017-11-14 10:27 Roni_i 阅读(241) 评论(0) 推荐(0) 编辑
摘要: A. ACM ICPC time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. ACM ICPC time limit per t 阅读全文
posted @ 2017-11-14 10:01 Roni_i 阅读(458) 评论(0) 推荐(0) 编辑