#include <bits/stdc++.h>
using namespace std;
int m, n, fm, fz;
int main() {
while (cin >> n >> m) {
fm = fz = 1;
if (m > n) {
cout << 0 << endl ;
continue;
}
else {
for (int i = 0; i < m; i++) {
fm = fm * (n - i);
fz = fz * (m - i);
}
cout << fm / fz << endl ;
}
}
return 0;
}
排列组合中的组合的求值
猜你喜欢
转载自blog.csdn.net/weixin_46130146/article/details/104048861
今日推荐
周排行