搜索
文章平均质量分 77
真的好难
因为热爱,所以才一步一步走下去。。
展开
-
HDU 1198
Farm IrrigationTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6933 Accepted Submission(s): 2966Problem DescriptionBenny has a sp原创 2015-07-15 09:54:48 · 594 阅读 · 0 评论 -
hdU 5024
Wang Xifeng's Little PlotTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 786 Accepted Submission(s): 474Problem Description《D原创 2015-09-11 12:43:06 · 350 阅读 · 0 评论 -
HDU 1885
Key TaskTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1656 Accepted Submission(s): 699Problem DescriptionThe Czech Technica原创 2015-09-11 20:55:30 · 421 阅读 · 0 评论 -
hdu 5438
PondsTime Limit: 1500/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1699 Accepted Submission(s): 542Problem DescriptionBetty owns a lot of原创 2015-09-16 10:11:24 · 361 阅读 · 0 评论 -
HDU 5495(dfs)
LCSTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 417 Accepted Submission(s): 216Problem DescriptionYou are given two se原创 2015-10-05 23:15:45 · 308 阅读 · 0 评论 -
cf 580 c(邻接表+dfs)
C. Kefa and Parktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKefa decided to celebrate his first big sa原创 2015-09-23 13:34:24 · 668 阅读 · 0 评论 -
CF 505 B (dfs)
链接:http://codeforces.com/problemset/problem/505/B#include using namespace std;int to,res,n,m;int c[105][105][105];int d[105][105];int ans[105];bool vis[105][105][105];void dfs(int v,int co)原创 2015-10-14 16:12:36 · 348 阅读 · 0 评论 -
cf 337 D(dfs)
链接:http://codeforces.com/problemset/problem/337/D 找到已经被攻击的最远距离的两个点,再遍历其他点到这两点之间的距离,当两点之间的距离都小于d,这符合题意 #include using namespace std;const int maxn=1e5+5;int n,m,d;int a[maxn],dist1[maxn],dist原创 2016-07-12 19:06:23 · 1224 阅读 · 0 评论 -
hdu 1520(树形dp)
Anniversary partyTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8730 Accepted Submission(s): 3772Problem DescriptionTher原创 2016-07-14 16:25:04 · 266 阅读 · 0 评论 -
hdu 2196(树形dp)
ComputerTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5508 Accepted Submission(s): 2748Problem DescriptionA school boug原创 2016-07-14 16:47:26 · 303 阅读 · 0 评论 -
hdu 3586(树形dp+二分)
Information DisturbingTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 2540 Accepted Submission(s): 901Problem Description原创 2016-07-14 16:54:14 · 283 阅读 · 0 评论 -
poj 3107(树形dp)
GodfatherTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 5860 Accepted: 2052DescriptionLast years Chicago was full of gangster fights and strange murd原创 2016-07-14 17:00:42 · 235 阅读 · 0 评论 -
poj 2378(树形dp)
Tree CuttingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 4316 Accepted: 2627DescriptionAfter Farmer John realized that Bessie had installed a "tree-s原创 2016-07-14 17:04:41 · 249 阅读 · 0 评论 -
poj 3140(树形dp)
Contestants DivisionTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 9349 Accepted: 2676DescriptionIn the new ACM-ICPC Regional Contest, a special moni原创 2016-07-14 17:10:59 · 280 阅读 · 0 评论 -
poj 1655(树形dp)
Balancing ActTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 11953 Accepted: 5033DescriptionConsider a tree T with N (1 <= N <= 20,000) nodes numbered 1原创 2016-07-14 17:08:05 · 221 阅读 · 0 评论 -
HDU 5012
DiceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1465 Accepted Submission(s): 749Problem DescriptionThere are 2 special di原创 2015-09-11 12:49:26 · 419 阅读 · 0 评论 -
HDU 1429
胜利大逃亡(续)Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6806 Accepted Submission(s): 2368Problem DescriptionIgnatius再次被魔王抓走了(原创 2015-09-11 20:57:59 · 412 阅读 · 0 评论 -
hdu(1016)
Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 33039 Accepted Submission(s): 14624Problem DescriptionA ring is原创 2015-07-10 21:29:39 · 437 阅读 · 0 评论 -
HDU(1312)
Red and BlackTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12211 Accepted Submission(s): 7601Problem DescriptionThere is a rect原创 2015-07-10 21:40:14 · 669 阅读 · 0 评论 -
hdu 2645
find the nearest stationTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 240 Accepted Submission(s): 129Problem DescriptionSince d原创 2015-07-13 11:08:31 · 463 阅读 · 0 评论 -
HDU(1241)
Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16742 Accepted Submission(s): 9626Problem DescriptionThe GeoSurvComp原创 2015-07-10 21:21:16 · 879 阅读 · 0 评论 -
HDU 1181
变形课Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 17043 Accepted Submission(s): 6139Problem Description呃......变形课上Harry碰到了一点小原创 2015-07-10 21:50:53 · 563 阅读 · 0 评论 -
HDU 1258
Sum It UpTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4874 Accepted Submission(s): 2553Problem DescriptionGiven a specified原创 2015-07-10 21:59:11 · 657 阅读 · 0 评论 -
HDU 2717
Catch That CowTime Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8764 Accepted Submission(s): 2762Problem DescriptionFarmer John has原创 2015-07-13 11:26:54 · 836 阅读 · 0 评论 -
HDU (1175)连连看
连连看Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 23806 Accepted Submission(s): 5870Problem Description“连连看”相信很多人都玩过。没玩过也没关系,下原创 2015-07-13 21:00:38 · 600 阅读 · 0 评论 -
HDU 1026
Ignatius and the Princess ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14212 Accepted Submission(s): 4488Special JudgeProblem原创 2015-07-13 11:29:46 · 479 阅读 · 0 评论 -
HDU 5339
UntitledTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 828 Accepted Submission(s): 460Problem DescriptionThere is an integer a a原创 2015-08-03 18:32:05 · 392 阅读 · 0 评论 -
HDU 1501
ZipperTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7813 Accepted Submission(s): 2765Problem DescriptionGiven three strings, yo原创 2015-07-11 10:39:56 · 650 阅读 · 0 评论 -
hdu 1548
A strange liftTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14947 Accepted Submission(s): 5654Problem DescriptionThere is a str原创 2015-07-13 11:23:20 · 527 阅读 · 0 评论 -
HDU 1973
Prime PathTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 463 Accepted Submission(s): 305Problem DescriptionThe ministers of the原创 2015-07-13 11:14:15 · 803 阅读 · 0 评论 -
hdu 5025
Saving Tang MonkTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1733 Accepted Submission(s): 604Problem Description《Journey t原创 2015-09-11 12:46:19 · 432 阅读 · 0 评论 -
cf 686 D
链接:http://codeforces.com/problemset/problem/686/D 寻找以i为根的子树的重心 当我们要求ans[i]的时候可以发现ans[i]一定会在i节点儿子中数量最多的子树当中,所以层层往上推 直到ans[i]=i || d[i]-d[ans[i]]#include using namespace std;const int N=3e5+原创 2016-07-15 21:44:00 · 1918 阅读 · 0 评论