09 2021 档案

摘要:不调用next_permutation() 1 bool used[MAX_N]; 2 int perm[MAX_N]; 3 4 // 生成{0, 1, 2, 3, ..., n-1}的n!种排列 5 6 void permutation(int pos, int n) { 7 if (pos == 阅读全文
posted @ 2021-09-21 08:19 haifan16 阅读(42) 评论(0) 推荐(0) 编辑

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