求组合数:
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; n --; long long ans = 1; for(int i = 1; i <= 11; i ++){ ans *= n; ans /= i; n --; } cout << ans << endl; return 0; }
原文:https://www.cnblogs.com/pureayu/p/14133034.html