会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Bryce Chen
ONION_CYC
博客园
首页
管理
2016年8月21日
【vijos】P1659 河蟹王国
摘要: 【算法】线段树 【题解】区间加上同一个数+区间查询最大值。注意和谐值可以是负数,初始化ans为负无穷大。 #include<cstdio> #include<algorithm> using namespace std; const int maxn=100010,ainf=-0x3f3f3f3f;
阅读全文
posted @ 2016-08-21 11:33 ONION_CYC
阅读(230)
评论(0)
推荐(0)
编辑
公告