int a[6]={10,1,50,50,20,5}; int dp[10][10]; int main() { int n; n=6; int k,i,t,j,aa; k=3; while(k<=n) { i=0; while(i