题解:P10448 组合型枚举
摘要:组合数,可用 dfs 解决,思路就是先选一个数,并标记,后面依次寻找未标记的数,构造成功后输出。 #include<bits/stdc++.h> using namespace std; int n, r; int a[100000];//存放选出的数 bool b[100000];//标记 voi
阅读全文
posted @ 2024-05-15 20:33
posted @ 2024-05-15 20:33
posted @ 2024-05-15 20:26
posted @ 2024-05-02 20:38