题解:AT_abc425_c [ABC425C] Rotate and Sum Query

· · 题解

变量解释

变量名 作用
a[N] 存储原始数组
pre[N] 前缀和数组,用于快速计算区间和
sh 偏移量

模拟+偏移。

code。