NOJ/39/main.c

21 lines
290 B
C
Raw Permalink Normal View History

2020-08-31 16:46:43 +00:00
#include <stdio.h>
unsigned long long C(int m,int n);
int main(void){
int m,n;
scanf("%d %d",&m,&n);
printf("%llu\n",C(m,n));
return 0;
}
unsigned long long C(int m,int n){
int i,c = 1,tmp;
for(i = 0; i < n; i++){
c *= m-i;
}
for(i = 0; i < n; i++){
c /= n-i;
}
return c;
}