跳到正文
搜索文章与用户
⌘K
登录
个人记录
全排列
xujiacheng0312
约 1 分钟
稍后读
复制链接
检查更新
原文
文章信息与版本
文章信息
收录
2025年12月12日
更新
2026年1月29日
篇幅
约 1 分钟
版本
v2
当前
2026年1月29日
v1
2025年10月17日
C++
复制
do
{
for
(
int
i
=
1
;i
<=
n;i
++
)
printf
(
"
%d
"
,a[i]); cout
<<
endl; }
while
(
next_permutation
(a
+
1
,a
+
n
+
1
));