mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
34806a93cd
2500-2599
17 lines
325 B
C++
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;
|
|
}
|