摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=1559 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int maxn = 1000+10; 8 const int INF = 1<<28; 9 int map[maxn][maxn]; //表示以[1,1]为左上角,以[i,j]为右下角的矩形的和10 11 int main()12 {13 int t, i, j, m, n, x, y;14 in... 阅读全文
posted @ 2014-02-26 17:08 水门 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=1257虽然分类是dp感觉还是贪心比较水 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int maxn = 1000+10; 8 int d[maxn]; //d数组存储一套系统的目前的发射的最小的高度 9 10 int main()11 {12 int n, i, x, cou, j;13 while(~scanf("%d", &n))14 ... 阅读全文
posted @ 2014-02-26 17:03 水门 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 第一次做tc 的比赛,一点也不懂,虽然题目做出来了,但是,也没有在比赛的时候提交成功。。还有,感谢一宁对tc使用的讲解。。贴一下代码。。。。。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 cl... 阅读全文
posted @ 2014-02-26 14:28 水门 阅读(207) 评论(0) 推荐(0) 编辑