
树
文章平均质量分 87
soul11201
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
bit 1031 Binary Tree Traversals
Binary Tree Traversals 时间限制: 1秒 内存限制: 64M ProblemDescription A binary tree is a finite set of vertices that is eitherempty or consists of a root r and two disjoint binary trees called the left原创 2013-02-07 19:53:00 · 462 阅读 · 0 评论 -
hdu 1863 畅通工程
#include #include #include typedef struct{ int a,b; int cost; int status; }Edge; Edge input[5050]; int cost[5050]; int parent[5050]; int cmp(const void *a,const void *b){ return (((Edge原创 2013-02-19 09:41:05 · 461 阅读 · 0 评论 -
hdu 1162 Eddy's picture
#include #include #include #include /**************************************************************************/ typedef struct{ double x,y; }Point; typedef struct{ int a,b; double原创 2013-02-19 08:58:52 · 391 阅读 · 0 评论 -
poj 2421 hdu 1102 Constructing Roads
因为用的前几次的代码input 和parent开的太小了,一直wa。 #include #include #include typedef struct{ int a,b; int len; int status; }Edge; Edge input[6000]; /******************************************************原创 2013-02-19 08:53:47 · 486 阅读 · 0 评论 -
hdu 1233 还是畅通工程
#include #include #include typedef struct{ int a,b; int cost; int status; }Edge; Edge input[5050]; int cost[5050]; int parent[5050]; int cmp(const void *a,const void *b){ return (((Edge原创 2013-02-19 09:43:20 · 412 阅读 · 0 评论 -
hdu 1301 Jungle Roads poj
先前一直不过主要在输入处理哪里。 #include using namespace std; #include #include typedef struct{ int a,b; int len; }Edge; Edge input[120]; /*********************************************************/ /*并查集原创 2013-02-19 09:16:08 · 701 阅读 · 0 评论 -
hdu 1879 继续畅通工程
#include #include #include typedef struct{ int a,b; int cost; int status; }Edge; Edge input[5050]; int cost[5050]; int parent[5050]; int cmp(const void *a,const void *b){ return (((Edge原创 2013-02-19 09:37:58 · 452 阅读 · 0 评论 -
hdu 1232 畅通工程
#include #include int pararent[1150]; int root(int n){ if(pararent[n] == 0)return n; else return pararent[n] = root(pararent[n]); } int main(int argc, char *argv[]) { //FILE *fp; //fp = freop原创 2013-02-18 17:16:30 · 527 阅读 · 0 评论 -
bit 1020 小白鼠
小白鼠 时间限制: 1秒 内存限制: 64M Description 有 n 个瓶子,已知其中有且仅有一个瓶子的饮料有毒。现在我们想知道哪个瓶子的饮料有毒,于是找来一些小白鼠做测试。 假设我们有足够多的小白鼠,为了加快测试速度,我们每次可以把来自若干个瓶子的测试样本混在一起,喂给小白鼠。如果小白鼠喝了有毒的饮料,即死。 现在给你每个瓶子的饮料有毒的概率(和总是 100% ),问原创 2013-02-10 19:48:57 · 833 阅读 · 0 评论 -
Is It A Tree?
Is It A Tree? 时间限制: 1秒 内存限制: 10240KB Description A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges b原创 2013-02-10 14:53:48 · 649 阅读 · 0 评论 -
合并果子
合并果子 成绩 10 开启时间 2013年03月19日 星期二 14:40 折扣 0.8 折扣时间 2013年03月28日 星期四 14:40 允许迟交 否 关闭时间 2013年06月30日 星期日 14:40 在一个果园里,多多已经将所有的果子打了下来,而且按原创 2013-06-18 12:18:50 · 4589 阅读 · 3 评论