組合數輸出題解

組合數輸出: 題解: 由於組合不須要擔憂順序的問題因此從大到小挨個搜索就行 代碼:c++ #include<bits/stdc++.h> using namespace std; int n,m,ans[22]; void dfs(int a,int b){ if(b>m){ for(int i=1;i<b;i++){ printf("%d",ans
相關文章
相關標籤/搜索