http://poj.org/problem?id=1985 (题目链接) 题意 求树上两点间最长距离。题目背景以及输入描述请见poj1984。 Solution 树的直径。 代码 ...
分类:
其他好文 时间:
2016-10-06 00:21:12
阅读次数:
137
P1472 奶牛家谱 Cow Pedigrees P1472 奶牛家谱 Cow Pedigrees P1472 奶牛家谱 Cow Pedigrees 102通过 193提交 题目提供者该用户不存在 标签USACO 难度普及+/提高 提交 讨论 题解 最新讨论 暂时没有讨论 题目描述 农民约翰准备购买 ...
分类:
其他好文 时间:
2016-10-04 21:07:23
阅读次数:
167
Farmer John has a number of pastures on his farm. Cow paths connect some pastures with certain other pastures, forming a field. But, at the present ti ...
分类:
其他好文 时间:
2016-10-04 16:30:11
阅读次数:
223
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2717 Catch That Cow Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Tot ...
分类:
其他好文 时间:
2016-10-03 21:17:14
阅读次数:
259
Cow Pedigrees Farmer John is considering purchasing a new herd of cows. In this new herd, each mother cow gives birth to two children. The relationshi ...
分类:
其他好文 时间:
2016-10-03 08:56:39
阅读次数:
180
题目描述 Bessie the cow, always a fan of shiny objects, has taken up a hobby of mining diamonds in her spare time! She has collected diamonds () of varyin ...
分类:
其他好文 时间:
2016-10-03 06:50:36
阅读次数:
128
Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 10021 Accepted: 4814 Description Few know that the cows have their own dictionary with W (1 ...
分类:
其他好文 时间:
2016-10-02 21:50:34
阅读次数:
230
Description Farmer John's N cows (1 <= N <= 100,000) are lined up in a row.Each cow is labeled with a number in the range 1...K (1 <= K <=10,000) iden ...
分类:
其他好文 时间:
2016-10-01 00:01:29
阅读次数:
404
问题描述: int * cow = new int[n+1]; memset(cow,0,(n+1)*4); 将N+1个元素置成0,为什么不行 memset是对一个字节的int4个字节,因此*4 但是只能为0,其他例如1就不可以,详见最后一个例子 memest原型 (please type "man ...
分类:
其他好文 时间:
2016-09-28 10:16:23
阅读次数:
156