***数据结构****
zm_11
这个作者很懒,什么都没留下…
展开
-
HDOJ 1022
学会使用栈。原创 2015-07-27 23:16:18 · 308 阅读 · 0 评论 -
Hdu oj 1232 畅通工程
Problem Description 某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路?Input 测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数,分别是城镇数目N ( < 1000 )原创 2015-07-29 22:58:12 · 349 阅读 · 0 评论 -
Hdu 1950 Bridging signals
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description'Oh no, they've done it again', cries the chief designer at the Waferland chip factory. Once m原创 2015-07-31 11:45:13 · 337 阅读 · 0 评论 -
Hdoj 2141 Can you find it ?
Hdoj 2141 Can you find it?Problem Description Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, which s原创 2015-07-30 21:04:08 · 352 阅读 · 0 评论 -
Hdu 今年暑假不Ac?
#include#include#define N 110using namespace std;struct stu{ int a; int b;}c[N];int cmp(stu x,stu y){ if(x.b==y.b) { return x.a>y.a; } else return x.b<y.b;}int ma原创 2015-07-31 21:12:17 · 279 阅读 · 0 评论