top of page

소스 코드 제출

공개·회원 81명

260529

/*

#include <stdio.h>

#include <stdlib.h>


int main()

{

printf("Hello world!\n");

return 0;

}

*/


//#include <stdio.h>

//int rec(int p,int q)

//{

// if(q==p) return 0;

// else {

// if(q>p) return rec(q/2,p)+1;

// else return rec(q,p/2)+1;

// }

//}

//int main()

//{

// int n,m;

// scanf("%d %d",&n, &m);

// printf("%d",rec(n,m));

//}


#include <stdio.h>

long long int rec(long long int a,long long int b){

return a*rec(a-1,b)/(rec(a,b-1)*rec((a-b)-1,b));

}

int main()

{

int n,m;

scanf("%d %d",&n, &m);

printf("%d",rec(n,m));

}

3회 조회
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546 ,     031) 215 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호
bottom of page