摘要:
1.问题描述 一个口袋中放有12个球,已知其中3个是红的,3个是白的,6个是黑的,现在从中任意取8个,问共有多少种可能的颜色搭配。 #include<iostream>using namespace std;int main(){ int m, n,ans = 0; for (m = 0; m <= 阅读全文
摘要:
#include<iostream>#include<iomanip>using namespace std;int arr[100], n, r;void dfs(int m) { if (m > r) { for (int i = 1; i <= r; i++) { cout << setw(3 阅读全文