随笔分类 -  【Codeforces】

codeforces 743D【数dp】
摘要:链接:http://codeforces.com/contest/743/problem/D 题意: 给定n个结点的树的每个结点的权值,让你找到两个不相交的子树的最大权值和;1为根节点; 题解: 首先了解一下子树的概念,百度一下就出来了。考虑以u为根结点的子树的最大权值,两种情况: 1.包含u的时候 阅读全文

posted @ 2017-02-21 23:18 Jstyle 阅读(227) 评论(0) 推荐(0)

codeforces - 766D【Double 并查集】
摘要:D. Mahmoud and a Dictionary time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output Mahmoud want 阅读全文

posted @ 2017-02-08 20:07 Jstyle 阅读(341) 评论(0) 推荐(0)

codeforces - 766C【dp】
摘要:C. Mahmoud and a Message time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Mahmoud and 阅读全文

posted @ 2017-02-08 19:54 Jstyle 阅读(313) 评论(0) 推荐(0)

codeforces - 766B【三角形判断】
摘要:B. Mahmoud and a Triangle time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Mahmoud has n 阅读全文

posted @ 2017-02-08 19:44 Jstyle 阅读(723) 评论(0) 推荐(0)

codeforces 764C【dfs】
摘要:C. Timofey and a tree time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Each New Year Timo 阅读全文

posted @ 2017-02-03 20:50 Jstyle 阅读(278) 评论(0) 推荐(0)

codeforces 760E or 759C 【线段树维护后缀和】
摘要:C. Nikita and stack time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Nikita and stack 阅读全文

posted @ 2017-01-26 21:45 Jstyle 阅读(471) 评论(0) 推荐(0)

codeforces - 276D【贪心+数学】
摘要:D. Little Girl and Maximum XOR time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A little 阅读全文

posted @ 2017-01-16 20:31 Jstyle 阅读(250) 评论(0) 推荐(0)

codeforces #371div2 (ABC)
摘要:A. Meeting of Old Friends time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Today an outsta 阅读全文

posted @ 2016-09-14 20:06 Jstyle 阅读(205) 评论(0) 推荐(0)

cf - 140 C. New Year Snowmen(贪心+优先队列)
摘要:C. New Year Snowmen time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output As meticulous Gerald 阅读全文

posted @ 2016-07-28 10:30 Jstyle 阅读(380) 评论(0) 推荐(0)

cf - 140 A. New Year Table(模拟)
摘要:A. New Year Table time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. New Year Table time 阅读全文

posted @ 2016-07-28 10:14 Jstyle 阅读(251) 评论(0) 推荐(0)

cf - 629D Babaei and Birthday Cake(DP+线段树维护)
摘要:D - Babaei and Birthday Cake Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Practice CodeForces 629D D - Babaei a 阅读全文

posted @ 2016-07-15 15:10 Jstyle 阅读(258) 评论(0) 推荐(0)

cf #360 div2 D-Remainders Game(中国剩余定理)
摘要:D. Remainders Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output D. Remainders Game tim 阅读全文

posted @ 2016-07-01 00:59 Jstyle 阅读(202) 评论(0) 推荐(0)

cf #360 div2C - NP-Hard Problem(二分图判断+输出)
摘要:C. NP-Hard Problem time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. NP-Hard Problem ti 阅读全文

posted @ 2016-06-30 23:13 Jstyle 阅读(239) 评论(0) 推荐(0)

cf - 670C Cinema(预处理)
摘要:题目链接:http://codeforces.com/contest/670/problem/C 阅读全文

posted @ 2016-06-20 01:54 Jstyle 阅读(196) 评论(0) 推荐(0)

cf #345 div2 C(Vasya and String。双端队列)
摘要:题目链接:http://codeforces.com/contest/676/problem/C 1 #include <iostream> 2 #include <deque> 3 #include <string> 4 5 using namespace std; 6 /************ 阅读全文

posted @ 2016-06-13 12:27 Jstyle 阅读(159) 评论(0) 推荐(0)

cf - #346 C-Tanya and Toys
摘要:#include #include using namespace std; /******************************************************************************************************************* 贪心:排序,水过去... 阅读全文

posted @ 2016-04-12 23:46 Jstyle 阅读(145) 评论(0) 推荐(0)

cf - #346 D-Bicycle Race
摘要:#include #define MAX 1010 using namespace std; /******************************************************************************************************************** 最大的矩形四个顶点肯定不是危险; ... 阅读全文

posted @ 2016-04-12 23:45 Jstyle 阅读(113) 评论(0) 推荐(0)

cf - #346 E-New Reform
摘要:#include #include using namespace std; /**************************************************************************************************************** 题意: 给你一个图... 阅读全文

posted @ 2016-04-12 23:43 Jstyle 阅读(126) 评论(0) 推荐(0)

导航