字典序

next_permutation(a,a+n);

do{

...

}while(next_permutation(a,a+n));

posted @ 2021-10-28 22:41  兮何其  阅读(31)  评论(0)    收藏  举报