随笔分类 -  乱搞-贪心

摘要:地址:http://acm.split.hdu.edu.cn/showproblem.php?pid=6000 题目: Wash Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 64000/64000 K (Java/Others)Tot 阅读全文
posted @ 2017-10-18 15:37 weeping 阅读(530) 评论(0) 推荐(0) 编辑
摘要:题目: C. From Y to Y time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. From Y to Y time li 阅读全文
posted @ 2017-09-01 23:55 weeping 阅读(392) 评论(0) 推荐(0) 编辑
摘要:地址:http://arc080.contest.atcoder.jp/tasks/arc080_a 题目: C - 4-adjacent Time limit : 2sec / Memory limit : 256MB Score : 400 points Problem Statement We 阅读全文
posted @ 2017-08-07 00:40 weeping 阅读(221) 评论(0) 推荐(0) 编辑
摘要:题目: Problem F. Matrix GameInput file: standard inputOutput file: standard inputTime limit: 1 secondMemory limit: 256 mebibytesAlice and Bob are playin 阅读全文
posted @ 2017-08-05 23:58 weeping 阅读(288) 评论(0) 推荐(0) 编辑
摘要:题目:Problem D. Clones and TreasuresInput file: standard inputOutput file: standard outputTime limit: 1 secondMemory limit: 256 mebibytesThe magical tre 阅读全文
posted @ 2017-08-05 23:44 weeping 阅读(314) 评论(0) 推荐(0) 编辑
摘要:地址:http://acm.split.hdu.edu.cn/showproblem.php?pid=6060 题目: RXD and dividing Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 524288/524288 K (Jav 阅读全文
posted @ 2017-08-01 21:55 weeping 阅读(141) 评论(0) 推荐(0) 编辑
摘要:地址:http://acm.uestc.edu.cn/#/problem/show/1580 题目: 简单图论问题 简单图论问题 Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others) Submi 阅读全文
posted @ 2017-05-17 22:19 weeping 阅读(173) 评论(0) 推荐(0) 编辑
摘要:地址:http://codeforces.com/contest/765/problem/C 题目: C. Table Tennis Game 2 time limit per test 2 seconds memory limit per test 512 megabytes input stan 阅读全文
posted @ 2017-02-20 19:04 weeping 阅读(211) 评论(0) 推荐(0) 编辑
摘要:题目: Nowadays spaceships are never launched from the Earth's surface. There is a huge spaceport placed in the geostationary orbit and connected to the 阅读全文
posted @ 2017-02-09 20:09 weeping 阅读(199) 评论(0) 推荐(0) 编辑
摘要:地址:http://codeforces.com/problemset/problem/712/C 题目: C. Memory and De-Evolution time limit per test 2 seconds memory limit per test 256 megabytes inp 阅读全文
posted @ 2016-09-13 18:40 weeping 阅读(163) 评论(0) 推荐(0) 编辑
摘要:思路:1.把所有有长度的剑看做点。Ai点是肯定要取。然后求另一把剑。 先对右区间排个序,然后每次看这个区间范围内有没有剑,如果没有就添加一把(值为右端点的剑); 如果有并且数量为1且这条龙的Ai等这把剑的长度的话,说用还需要一把剑,再添加一把。 否则不添加。 至于怎么查询某个区间有没有剑,可以用树状 阅读全文
posted @ 2016-08-03 23:02 weeping 阅读(542) 评论(0) 推荐(0) 编辑
摘要:地址:http://codeforces.com/problemset/problem/659/C 题目: C. Tanya and Toys time limit per test 1 second memory limit per test 256 megabytes input standar 阅读全文
posted @ 2016-04-04 15:51 weeping 阅读(227) 评论(2) 推荐(0) 编辑