摘要: CW高中-C0443D 维护下列操作: \(\forall i \in [l,r]:a_i \leftarrow x^{a_i}\)。 求 \(\sum_{i=l}^ra_i \mod M\)。 \(n,q,M,a_i \le 10^5\)。 显然要欧拉定理降幂。(结果考场上别的都想出来了,但不知道 阅读全文
posted @ 2023-12-24 20:50 Imcaigou 阅读(7) 评论(0) 推荐(0) 编辑