#include <stdio.h>
int take(int a,int b){
if(b==0){
return 1;
}else if(a==b){
return 1;
}else if(b==1){
return a;
}else {return take(a-1, b-1)+take(a-1,b);}
}
int main(void) {
int a,b;
a=4;
b=2;
printf("%dと%dのとき%d",a
,b
,take
(a
,b
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgdGFrZShpbnQgYSxpbnQgYil7CglpZihiPT0wKXsKCQlyZXR1cm4gMTsKCX1lbHNlIGlmKGE9PWIpewoJCXJldHVybiAxOwoJfWVsc2UgaWYoYj09MSl7CgkJcmV0dXJuIGE7Cgl9ZWxzZSB7cmV0dXJuIHRha2UoYS0xLCBiLTEpK3Rha2UoYS0xLGIpO30KCQoJCn0KCgoKaW50IG1haW4odm9pZCkgewogaW50IGEsYjsKIAogYT00OwogYj0yOwogcHJpbnRmKCIlZOOBqCVk44Gu44Go44GNJWQiLGEsYix0YWtlKGEsYikpOwoJcmV0dXJuIDA7Cn0K