![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DP
文章平均质量分 80
_FSMM
这个作者很懒,什么都没留下…
展开
-
【CodeForces 777C】Alyona and Spreadsheet
Alyona and SpreadsheetProblem DescriptionDuringthe lesson small girl Alyona works with one famous spreadsheet computer programand learns how to edit tables.Nowshe has a table filled with integ原创 2017-02-25 09:34:29 · 2137 阅读 · 0 评论 -
【CodeForces 455A】Boredom(dp)
A. Boredomtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlex doesn't like boredom. That's why whenever he g原创 2017-03-10 21:36:58 · 282 阅读 · 0 评论 -
【HDU 1520】Anniversary party(树形DP)
题目:hdu1520题意:每个人有自己的欢愉度值,每个人不能和他的上级同时出现,最大欢愉值是多少思路:树形dp入门题,建一棵树,从下往上dp,dp[i][0]表示第i个人不去,dp[i][1]表示去CODE#include #include #include #include #define maxn 6003using namespace std;int dp[m原创 2017-07-26 15:37:21 · 230 阅读 · 0 评论