标签:
1 7 3
8
#include<iostream> #include<cstdio> using namespace std; int digui(int x, int y) { if(x==0||y==1) return 1; if(y>x) return digui(x,x); else return digui(x,y-1)+digui(x-y,y); } int main() { int t,m,n; cin>>t; for(int i=1; i<=t; i++) { cin>>m>>n; printf("%d\n",digui(m,n)); } return 0; }
标签:
原文地址:http://www.cnblogs.com/dxy1174868024/p/5244266.html