- 博客(6)
- 收藏
- 关注
原创 天梯赛5-12 愿天下有情人都是失散多年的兄妹 【dfs】
5-12 愿天下有情人都是失散多年的兄妹 (25分)呵呵。大家都知道五服以内不得通婚,即两个人最近的共同祖先如果在五代以内(即本人、父母、祖父母、曾祖父母、高祖父母)则不可通婚。本题就请你帮助一对有情人判断一下,他们究竟是否可以成婚?输入格式:输入第一行给出一个正整数N(2 \le≤ N \le 10^4≤104),随后N行,每行按以下格式给出一个人的
2017-03-23 22:00:30 1563
原创 poj2718 Smallest Difference【贪心】
Smallest DifferenceTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 10453 Accepted: 2855DescriptionGiven a number of distinct decimal digits, you can for
2017-03-15 19:53:55 335
原创 HDU problem 5635 LCP Array【思维】
LCP ArrayTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1532 Accepted Submission(s): 468Problem DescriptionPeter has a str
2017-03-08 18:03:52 260
原创 codeforces 782C Andryusha and Colored Balloons【构造】
C. Andryusha and Colored Balloonstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndryusha goes through a
2017-03-07 18:13:21 513
原创 HDU 4278 Faulty Odometer【水题】
Faulty OdometerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2017 Accepted Submission(s): 1398Problem Description You are
2017-03-07 18:05:08 270
原创 codeforces B. The Meeting Place Cannot Be Changed【二分】
B. The Meeting Place Cannot Be Changedtime limit per test5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe main road in Byt
2017-03-06 20:27:39 472
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人