
线段树
文章平均质量分 87
AC-NEWBIE
得之淡然 失之坦然
展开
-
离散化-线段树-扫描线小结
昨天打了南宁赛区的网络赛,碰到一个求矩形并的面积的模板题,然而没A出来(不会啊)。以前也碰到过类似线段树+扫描线的题目,只能怪自己以前没补题吧哎~。 关于这个知识点,网上随便一搜就能搜到大堆,就说一下我在学习的过程中碰到的问题。 一:首先是离散化,定义就不说了(其实不知道2333),我笼统地理解就是把大的数据范围缩小,同时又保证数据之间地关系不变,比如说坐标的大小,如果给你一些点,你需要的属性原创 2017-09-25 19:22:02 · 575 阅读 · 0 评论 -
第五场-G-Flipping Parentheses
题面链接:点击打开链接(一)题面:DescriptionA string consisting only of parentheses ‘(’ and ‘)’ is called balanced if it is one of the following.A string “()” is balanced.Concatenation of two balanced strings are bal...原创 2018-05-10 14:00:21 · 219 阅读 · 0 评论 -
CSU-1532-JuQueen(线段树+离散化)
(一)题面:Problem descriptionJuQueen is the super computer with the best performance allover Germany. It is on rank 8 in the famous top500 list with its 458 752 cores. It draws a lot of energy (up to 2 30...原创 2018-05-19 11:49:06 · 445 阅读 · 0 评论 -
2018 Multi-University Training Contest 2-G-Naive Operations
题目链接:HDU6135-Naive Operations (一)题面: Problem Description In a galaxy far, far away, there are two integer sequence a and b of length n. b is a static permutation of 1 to n. Initially a is filled wi...原创 2018-07-26 22:42:01 · 221 阅读 · 0 评论 -
2018 Multi-University Training Contest 5-G-Glad You Came
题目链接:HDU-6356-Glad You Came (一)题面: Problem Description Steve has an integer array a of length n (1-based). He assigned all the elements as zero at the beginning. After that, he made m operations, e...原创 2018-08-07 00:04:22 · 375 阅读 · 0 评论