
线段树
Twillz
这个作者很懒,什么都没留下…
展开
-
HDU 1754 I Hate it
I Hate ItTime Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 77616 Accepted Submission(s): 29868Problem Description 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到原创 2017-07-15 21:20:40 · 265 阅读 · 0 评论 -
POJ 3468(线段树模板 Lazy)
A Simple Problem with Integers Time Limit: 5000MS Memory Limit: 131072K Total Submissions: 111585 Accepted: 34748 Case Time Limit: 2000MS DescriptionYou have N integers, A1, A2, … , AN.原创 2017-07-18 16:44:05 · 392 阅读 · 0 评论 -
HDU 1698 Just A Hook(线段树修改区间到某值)
In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic sticks which are of the same length. No原创 2017-08-08 15:29:23 · 293 阅读 · 0 评论 -
(线段树+dfs序)
百度科技园内有nn个零食机,零食机之间通过n−1n−1条路相互连通。每个零食机都有一个值vv,表示为小度熊提供零食的价值。 由于零食被频繁的消耗和补充,零食机的价值vv会时常发生变化。小度熊只能从编号为0的零食机出发,并且每个零食机至多经过一次。另外,小度熊会对某个零食机的零食有所偏爱,要求路线上必须有那个零食机。 为小度熊规划一个路线,使得路线上的价值总和最大。 Input 输入数据第一行是原创 2017-08-11 14:16:17 · 630 阅读 · 0 评论