正文
增加 2 行删除 2 行
29 行未改动30313233343536373849 行未改动888990919293949596115 行未改动全部展开29 行未改动using namespace std;using LL = long long;const int N = 2e5 + 5, M = 1e9 + 7;LL n, m, f[N], s;map<pair<int, int>, bool> k;int R(int x) {return f[x] == x ? x : f[x] = R(f[x]);}int main() {49 行未改动for (k = 1; k <= m; k++) S(1);int s = 0;for (int i = 0; i <= m; i++)s = (s + c[i] * (i + 1) % M) % M;cout << s << "\n";}}return 0;}115 行未改动全部展开29 行未改动30313233343536373849 行未改动888990919293949596115 行未改动全部展开29 行未改动using namespace std;using LL = long long;const int N = 2e5 + 5, M = 1e9 + 7;LL n, m, f[N], s;map<pair<int, int>, bool> k;int R(int x) {return f[x] == x ? x : f[x] = R(f[x]);}int main() {49 行未改动for (k = 1; k <= m; k++) S(1);int s = 0;for (int i = 0; i <= m; i++)s = (s + c[i] * (i + 1) % M) % M;cout << s << "\n";}}return 0;}115 行未改动全部展开