提交时间:2021-06-19 20:12:07

运行 ID: 20708

#include <iostream> using namespace std; int Combin2(int A[], int m, int n, int r) { int i, j; for (i = m; i >= n; i--) { A[n - 1] = i; if (n > 1) Combin2(A, m - 1, n - 1, r); else { for (j = r - 1; j >= 0; j++) cout << char(A[j]+'A'-1); cout << endl; } } }