OJ-Problems-Source/HDOJ/2519_autoAC.cpp
2016-08-22 00:30:27 +08:00

17 lines
325 B
C++

#include <stdio.h>
int main(){
double t, i;
double m, n, a, b;
scanf("%lf", &t);
while(t--){
scanf("%lf %lf", &m, &n);
a = 1; b = 1;
for(i = 1; i <= n; i++, m--){
a *= m;
b *= i;
}
printf("%.0lf\n", a / b);
}
return 0;
}