2015年7月11日

【十分不错】【离线+树状数组】【TOJ4105】【Lines Counting】

摘要: On the number axis, there are N lines. The two endpoints L and R of each line are integer. Give you M queries, each query contains two intervals: [L... 阅读全文

posted @ 2015-07-11 02:04 DDUPzy 阅读(123) 评论(0) 推荐(0) 编辑

【数据结构之树状数组】

摘要: 1、概述 树状数组(binary indexed tree),是一种设计新颖的数组结构,它能够高效地获取数组中连续n个数的和。概括说,树状数组通常用于解决以下问题:数组{a}中的元素可能不断地被修改,怎样才能快速地获取连续几个数的和? 2、树状数组基本操作 传统数组(共n个元素)的元素... 阅读全文

posted @ 2015-07-11 00:54 DDUPzy 阅读(120) 评论(0) 推荐(0) 编辑

导航