![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
文章平均质量分 82
tianhaijun2013
来自湖南省
展开
-
hdu moving table.
#include #include int map[201]; int main() { int T,n; int start,end; scanf("%d",&T); while(T--) { memset(map,0,sizeof(map)); int i,j,m; scanf("%d",&n); for(i=0;i { sca原创 2013-06-18 22:24:47 · 652 阅读 · 1 评论 -
hdu Monky and banana
题目链接:点击打开链接 题意: 给定N堆不同的积木,此积木这一类型数目是无限的。 题目要求: 用这N堆不同的积木,在下面的面比上面的积木的长要长,宽要宽,能够堆放的最大高度是多少。 分析。 可以先进行排序处理,(注意每一堆积木可以有三种不同的堆放形式,所以最多会有 180种积木,排完序后,就跟最大下降子序列差不多了。所以可得状态转移方程: dp[i]=max(dp[i]原创 2013-07-28 08:45:04 · 642 阅读 · 0 评论 -
hdu Doing Homework again
题目链接:点击打开链接 roblem Description Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If原创 2013-07-28 20:25:37 · 621 阅读 · 0 评论 -
hdu Eddy's pitrue prim and kruskal
点击打开链接 Prim #include #include #include double dis[110][110]; double lowcost[110]; int n; struct node { double x; double y; }list[110]; double fun(double x1,double x2,double y1,double y2原创 2013-08-06 15:01:06 · 735 阅读 · 0 评论