Coins Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10632 Accepted Submission(s): 4230 Problem Description Whuacmers use coins.They have coins of value A1,A2,A3...An Silverland dollar. One…
//http://www.cnblogs.com/devil-91/archive/2012/05/16/2502710.html #include<stdio.h> #define N 110000 #include<string.h> int dp[N]; int main() { int n,m,i,j,a[N],b[N],k,h; while(scanf("%d%d",&n,&m),n||m) { memset(dp,0,sizeof(d…
Food Problem Time Limit: 3000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1243 Accepted Submission(s): 368 Problem Description Few days before a game of orienteering, Bell came to a mathematician to sol…