摘要: 基础 设 \[ f(a,b,c,n)=\sum_{i=0}^{n}{\left\lfloor \frac{ai+b}{c} \right\rfloor} \] 其中,\(a,b,c,n\) 为常数,如何 \(O(\log n)\) 求解。 当 \(a\geq c\) 或者 \(b\geq c\) , 阅读全文
posted @ 2021-01-28 12:24 xzx9 阅读(85) 评论(0) 推荐(0) 编辑