码迷,mamicode.com
首页 >  
搜索关键字:bzoj3831    ( 5个结果
bzoj3831 [Poi2014]Little Bird 单调队列优化dp
3831: [Poi2014]Little Bird Description In the Byteotian Line Forest there are trees in a row. On top of the first one, there is a little bird who woul ...
分类:其他好文   时间:2017-12-25 17:01:38    阅读次数:184
【BZOJ3831】[Poi2014]Little Bird 单调队列
【BZOJ3831】[Poi2014]Little Bird Description In the Byteotian Line Forest there are trees in a row. On top of the first one, there is a little bird who ...
分类:其他好文   时间:2017-05-08 16:16:31    阅读次数:151
【单调队列】【动态规划】bzoj3831 [Poi2014]Little Bird
f(i)=min{f(j)+(D(j)using namespace std;#define N 1000001struct Point{int x,y;};bool operator =b.y;}int n,m,K,q[N];Point dp[N];int main(){ scanf("%d",&...
分类:其他好文   时间:2015-02-28 21:31:11    阅读次数:166
【BZOJ3831】【POI2014】Little Bird 单调队列,''再不刷它就土了''系列。
题意: 我直接粘bzoj的黑版翻译吧~ 有一排n棵树,第i棵树的高度是Di。 MHY要从第一棵树到第n棵树去找他的妹子玩。 如果MHY在第i棵树,那么他可以跳到第i+1,i+2,...,i+k棵树。 如果MHY跳到一棵不矮于当前树的树,那么他的劳累值会+1,否则不会。 为了有体力和妹子玩,MHY要最小化劳累值。 题解: 单调队列破题水,没了。 话说BZOJ的POI一向土豪...
分类:其他好文   时间:2015-01-08 09:38:42    阅读次数:159
BZOJ3831: [Poi2014]Little Bird
题目:http://www.lydsy.com/JudgeOnline/problem.php?id=3831题意:有一排n棵树,第i棵树的高度是Di。MHY要从第一棵树到第n棵树去找他的妹子玩。如果MHY在第i棵树,那么他可以跳到第i+1,i+2,...,i+k棵树。如果MHY跳到一棵不矮于当前树...
分类:其他好文   时间:2015-01-06 20:01:58    阅读次数:251
5条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!