问题分析: 实际每种排列组合的过程是树的深度遍历过程!用到了回溯法 #include <bits/stdc++.h> using namespace std; int n; int box[20],visit[20