#include <iostream>
using namespace std;
int comm(int n,int k)
{
if(k>n) return 0;
else if(n==k||k==0) return 1;
else return comm(n-1,k)+comm(n-1,k-1);
}
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main()
{
int n,k;
cout<<"输入n和k";
cin>>n>>k;
cout<<comm(n,k);
}