摘要:
题意: 1、区间求 a[l]×L+a[l+1]×(L−1)+⋯+a[r−1]×2+a[r](L is the length of [ l, r ] that equals to r - l + 1) 2、单点修改 解析: 只有这两个操作 并且区间求得值与前缀和极为相似 所以嘛 就要想到树状数组 树状 阅读全文
摘要:
Medicine faculty of Berland State University has just finished their admission campaign. As usual, about 80%80% of applicants are girls and majority o 阅读全文