![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
线段树
Gxyhqzt
这个作者很懒,什么都没留下…
展开
-
还教室(线段树lazy标记)
program df; type point=record c,a,b,d:longint; end; var i,j,n,m,x,y,k,t,g,h:longint; up,down,ans,z:int64; f:array[0..500000] of point; a:array[0..500000] of longint; c:array[0..500000] of int64原创 2016-11-08 16:14:43 · 465 阅读 · 0 评论 -
种花 (贪心+(堆 or 线段树))
种花 【问题描述】 经过三十多个小时的长途跋涉, 小 Z 和小 D 终于到了 NOI 现场——南山南 中学。 一进校园, 小 D 就被花所吸引了( 不要问我为什么) , 遍和一旁的种花 园丁交( J) 流( L) 了起来。 他发现花的摆放竟有如此奥秘: 圆形广场共有 N 个种花的位置, 顺时针编 号 1 到 N。 并且每个位置都有一个美观度 ai, 如果在这里种花就可以得到这 ai的原创 2017-08-28 17:05:34 · 586 阅读 · 0 评论 -
[USACO08FEB]酒店Hotel
题目描述The cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superior. Bessie, ever the competent travel agent, has named the原创 2017-10-23 21:45:10 · 399 阅读 · 0 评论