#include <stdio.h>
int factorial(int x)
{
int i, result;
result = 1;
for( i = x; i > 1; i-- ) {
result *= i;}
return result;
}
int comb(int m, int k){
int s;
s=factorial(m)/(factorial(k)*factorial(m-k));
return s;
}
int main(void)
{
int a,p,q;
printf("全体の数(12以下)といくつ取り出すか入力してください"); a=comb(p,q);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgZmFjdG9yaWFsKGludCB4KQp7CmludCBpLCByZXN1bHQ7CnJlc3VsdCA9IDE7Cglmb3IoIGkgPSB4OyBpID4gMTsgaS0tICkgewpyZXN1bHQgKj0gaTt9CnJldHVybiByZXN1bHQ7Cn0KCmludCBjb21iKGludCBtLCBpbnQgayl7CglpbnQgczsKcz1mYWN0b3JpYWwobSkvKGZhY3RvcmlhbChrKSpmYWN0b3JpYWwobS1rKSk7CnJldHVybiBzOwoJCn0KaW50IG1haW4odm9pZCkKewoJaW50IGEscCxxOwoJcHJpbnRmKCLlhajkvZPjga7mlbAoMTLku6XkuIsp44Go44GE44GP44Gk5Y+W44KK5Ye644GZ44GL5YWl5Yqb44GX44Gm44GP44Gg44GV44GEIik7CglzY2FuZigiJWQiLCZwKTsKCXNjYW5mKCIlZCIsJnEpOwoJYT1jb21iKHAscSk7CglwcmludGYoIiVkIixhKTsKICAgICAgIHJldHVybiAwOwp9Cg==