#include #include void run(void){ int t,n; scanf("%d%d",&t,&n); int *a=(int *)calloc(n,sizeof(int)); int i; for(i=0;i>j)&1) sum+=a[j]; if(sum<=t){ dp[i]=1; continue; } int min=n; for(j=i&(i-1);j>0;j=(j-1)&i){ int m=dp[j]+dp[i^j]; if(min>m) min=m; } dp[i]=min; } printf("%d\n",dp[(1<