摘要: T1: 链接:https://www.luogu.org/problem/T92563 $sol1$:把所有的加起来,减去个数恒为$2$的,再减去$2 \times (n-1)$,即为答案。使用快速幂处理,还要注意答案可能出现负数。 $sol2$:推出矩阵式子后用矩阵快速幂来维护。 代码$(sol1 阅读全文
posted @ 2019-08-08 09:04 BeyondLimits 阅读(197) 评论(0) 推荐(0) 编辑