感觉这场题目的难题难度都差不多,不过都是窝做不出的好题就对了 G.智乃与模数 给定,求这个集合中前大的元素和。 赛时因为没时间了,痛失这道数论分块。其实分块数肯定不超过,每个块里面都是等差数列,双二分就完事了。 #include <bits/stdc++.h> using namespace std; #define int long long #define PII array<int, 2> const int inf = 4e18; const int N = 1e6 + 5; int t = 1, k, n; int tot; int red[N], start...