随笔分类 -  组合数学

摘要:Anagram Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 20650 Accepted: 8246 Description You are to write a program that has to generate al 阅读全文
posted @ 2017-02-13 16:19 琴影 阅读(318) 评论(0) 推荐(0) 编辑
摘要:这是一个求一个排序的下一个排列的函数,可以遍历全排列,要包含头文件<algorithm>,与之相反的还有一个函数prev_permutation(); (1) int 类型的next_permutation int main(){ int a[3];a[0]=1;a[1]=2;a[2]=3; do{ 阅读全文
posted @ 2017-02-13 16:07 琴影 阅读(240) 评论(0) 推荐(0) 编辑