c语言从n个数中选m个数的组合

日期:2017-06-20 12:33:29 人气:1

c语言从n个数中选m个数的组合

#includeunsigned long factorial(int n);unsigned long combination(int n,int m);int main() { int n,m; scanf("%d%d",&n,&m); printf("combination(%d,%d) = %u\n",n,m,combination(n,m)); return 0;}unsigned long combination(int n,int m) {
    A+
热门评论