
DP
Eric_Tseng
https://github.com/Questzzq
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU 1069 Monkey and Banana
DescriptionA group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time, provide the monkey with some blocks. ...原创 2018-04-22 13:52:45 · 172 阅读 · 0 评论 -
HDU1171Big Event in HDU
Big Event in HDUTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 48005 Accepted Submission(s): 16494Problem DescriptionNowadays, we all know ...原创 2018-04-23 20:44:14 · 196 阅读 · 0 评论 -
最大子段和
(1)分治法:#include <iostream> #include <cstdio> #define maxn 1001 using namespace std; int a[maxn]; int MaxSubSum(int *a, int left, int right) { int sum = 0; if(left == right) return a[...原创 2018-06-07 22:39:04 · 236 阅读 · 0 评论