随笔分类 - 背包问题
摘要:Bone CollectorTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7774 Accepted Submission(s): 2884Problem DescriptionMany years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such
阅读全文
摘要:Ignatius and the Princess IIITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4636 Accepted Submission(s): 3246Problem Description"Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says
阅读全文
摘要:Big Event in HDUTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8035 Accepted Submission(s): 2697Problem DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College
阅读全文
摘要:Watch The MovieTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 1459 Accepted Submission(s): 485Problem DescriptionNew semester is coming, and DuoDuo has to go to school tomorrow. She decides to have fun tonight and will be very busy after tonight.
阅读全文
摘要:RobberiesTime Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 6 Accepted Submission(s) : 2Font: Times New Roman | Verdana | GeorgiaFont Size: ← →Problem DescriptionThe aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guy
阅读全文
摘要:Piggy-BankTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2659 Accepted Submission(s): 1314Problem DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes
阅读全文
摘要:Ahui Writes WordTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 434 Accepted Submission(s): 182Problem DescriptionWe all know that English is very important, so Ahui strive for this in order to learn more English words. To know that word has its .
阅读全文
摘要:#include<stdio.h>#include<string.h>intnvalue,m;intprice[110],weigt[110],num[110],fine[110]={0};intmain(){intcas;scanf("%d",&cas);while(cas--){memset(fine,0,sizeof(fine));scanf("%d%d",&nvalue,&m);for(inti=0;i<m;++i)scanf("%d%d%d",price+i,weigt+
阅读全文