![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树状数组
昨日明眸
个人爱好
展开
-
1081 子段求和
1081 子段求和基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题给出一个长度为N的数组,进行Q次查询,查询从第i个元素开始长度为l的子段所有元素之和。例如,1 3 7 9 -1,查询第2个元素开始长度为3的子段和,1 {3 7 9} -1。3 + 7 + 9 = 19,输出19。Input原创 2016-08-16 11:41:06 · 308 阅读 · 0 评论 -
hduacm1166敌兵布阵(树状数组)
敌兵布阵Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 77888 Accepted Submission(s): 32857Problem DescriptionC国的死对头A国这段时间正在进行军事演习,所以原创 2016-08-16 19:28:34 · 278 阅读 · 0 评论 -
light oj Binary Simulation
Binary SimulationTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionGiven a binary number, we are about to do some operations on the nu原创 2016-10-02 20:53:38 · 219 阅读 · 0 评论