摘要: 题意就不多说了。 很明显,能打出如下暴力: for (int i = 1; i <= n; ++i) for (int j = 0; j <= i; ++j) (ans += ppow(pre[i] - pre[j], k)) %= mod; 但在 \(n \le 2 \times 10^5\) 的 阅读全文
posted @ 2025-03-30 10:08 云岚天上飘 阅读(73) 评论(0) 推荐(0)