个人记录
这是 2025年10月17日 存档的第 1 版,不是当前版本。查看当前版本
do{ for(int i=1;i<=n;i++) printf("%d ",a[i]); cout<<endl; }while(next_permutation(a+1,a+n+1));