NOJ/39/main.c
Saturneric 52668c4122 Add.
2020-09-01 00:46:43 +08:00

21 lines
290 B
C

#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;
}