#include #include #include using namespace std; typedef long long ll; ll Q,D,X,T; ll comb[4000][2000]; ll combination(ll n,ll r){ if(r<=0||nT){ comb[n][r]=T+10; return comb[n][r]; }else{ comb[n][r]+=combination(n-1,r-1); } if(comb[n][r]>T){ comb[n][r]=T+10; } return comb[n][r]; } } void solve(){ cin>>D>>X>>T; if(combination(D+X-1,X)>T){ cout<<"ZETUBOU"<>Q; for(int i=0;i