正文
增加 2 行删除 2 行
112 行未改动全部展开113114115116117118119120121180 行未改动全部展开30230330430530630730830931021 行未改动112 行未改动全部展开if(a[j] == preht)suf[i] = (suf[i] + pw2[x] * suf[j] % mod) % mod;if(a[j] <= preht) x++;}}ans = 0;for(int i = 1; i <= n; i++){if(a[i] != mxv) continue;180 行未改动全部展开if(ys == 0) continue;int preht = rh[ys - 1];suf[i] = tot[preht] * pwinv[precon[i]] % mod;tot[a[i]] = (tot[a[i]] + pw2[pretot[i]] * suf[i] % mod) % mod;}ans = 0;ll sufsm = 0;for(int i = n; i >= 1; i--){21 行未改动112 行未改动全部展开113114115116117118119120121180 行未改动全部展开30230330430530630730830931021 行未改动112 行未改动全部展开if(a[j] == preht)suf[i] = (suf[i] + pw2[x] * suf[j] % mod) % mod;if(a[j] <= preht) x++;}}ans = 0;for(int i = 1; i <= n; i++){if(a[i] != mxv) continue;180 行未改动全部展开if(ys == 0) continue;int preht = rh[ys - 1];suf[i] = tot[preht] * pwinv[precon[i]] % mod;tot[a[i]] = (tot[a[i]] + pw2[pretot[i]] * suf[i] % mod) % mod;}ans = 0;ll sufsm = 0;for(int i = n; i >= 1; i--){21 行未改动