top of page

소스 코드 제출

공개·회원 77명

2025-08-23

/*

#include<stdio.h>

void f(int m, int t)

{

if(m/t==0)

{

if(m<10)#include<stdio.h>

int f(int m,int t)

{

if(t==1)

{

return m;

}

else if(m==t)

{

printf("1");

}

printf("%d",m/t*f(m-1,t-1));

}

int main()

{

int n,r;

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

f(n,r);

return 0;

}


{

printf("%d",m);

}

else

{

printf("%c",m+55);

}

return ;

}

f(m/t,t);

if(m%t<10)

{

printf("%d",m%t);

}

else

{

printf("%c",m%t+55);

}

}

int main()

{

int n,k;

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

f(n,k);

return 0;

}

*/

#include<stdio.h>

int f(int m,int t)

{

if(m==t)

{

return 1;

}

if(t==1)

{

return m;

}

return f(m-1,t-1)*(m/t);

}

int main()

{

int n,r;

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

f(n,r);

return 0;

}

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