03 2021 档案

摘要:这是一个c++函数,包含在头文件<algorithm>里面,下面是基本格式。 1 int a[]; 2 do{ 3 4 }while(next_permutation(a,a+n)); 下面的代码可产生1~n的全排列。 #include <stdio.h> #include <algorithm> 阅读全文
posted @ 2021-03-17 19:23 esico 阅读(27) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示