#include<stdio.h>
long long N(int n, int r) {
int i = n;
int j = r;
double ansn = 1;
for(int i = n; i >= (n-r + 1); i--)
ansn *= i;
return ansn;
}
int main() {
int n, r;
while( scanf("%d%d", &n, &r)!=EOF){
if(n==0 && r==0) break;
else if(n < r) printf("error\n");
else if(n == r) printf("1\n");
&nb...
登录后发布评论
error 少了一个!