
线段树/树状数组
傻不拉叽
这个作者很懒,什么都没留下…
展开
-
hdu1166:敌兵布阵
树状数组/线段树解hdu1166原创 2017-10-03 12:03:09 · 181 阅读 · 0 评论 -
hdu1754:I hate it
题目描述: 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。Input 题目包含多组测试,请处理到文件结束。 在每个测试的第一行,有两个正整数 N 和 M ( 0小于N<=200000,0小于M<5000 ),分原创 2017-10-05 09:32:21 · 215 阅读 · 0 评论 -
poj3468:A Simple Problem with Integers
Description: You have N integers, A1, A2, … , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is to a原创 2017-10-05 12:26:45 · 278 阅读 · 0 评论 -
zoj1610:count the colors
Description Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones. Your task is counting the segments of different colors you can see a原创 2017-10-05 13:27:47 · 302 阅读 · 0 评论