正文
增加 6 行删除 1 行
12345678134 行未改动全部展开14314414514614714814915011 行未改动upd 10.24:通过卡常以及对 `getans` 函数的常数优化,通过了 @KevinZ99 的 Hack,防止了我的题解被撤。---[P4587](https://www.luogu.com.cn/problem/P4587) 的带修版本。考虑新加入一个数对序列 Yuuki 数的影响。如果存在一个数 $x$,$x>\sum_{a_i<x}a_i+1$,那么从 $\sum_{a_i<x}a_i+1$ 到 $x-1$ 的所有数都无法被表示。134 行未改动全部展开powl((long double)cm,1.0L/3.0L)/powl((long double)max(1LL,qm),1.0L/3.0L)));}sort(q+1,q+qm+1,cmp);for(int i=1;i<=qm;i++){while(t<q[i].t){ t++; update(chg[t].p,chg[t].nw); }while(t>q[i].t){ update(chg[t].p,chg[t].old); t--; }11 行未改动123456789101112134 行未改动全部展开14714814915015115215315415511 行未改动upd 10.24:通过卡常以及对 `getans` 函数的常数优化,通过了 @[KevinZ99](https://www.luogu.com.cn/user/1117080) 的 Hack。---upd 10.25:通过调整块长通过了 @[KevinZ99](https://www.luogu.com.cn/user/1117080) 加强版 Hack。---[P4587](https://www.luogu.com.cn/problem/P4587) 的带修版本。考虑新加入一个数对序列 Yuuki 数的影响。如果存在一个数 $x$,$x>\sum_{a_i<x}a_i+1$,那么从 $\sum_{a_i<x}a_i+1$ 到 $x-1$ 的所有数都无法被表示。134 行未改动全部展开powl((long double)cm,1.0L/3.0L)/powl((long double)max(1LL,qm),1.0L/3.0L)));}B*=1.75;sort(q+1,q+qm+1,cmp);for(int i=1;i<=qm;i++){while(t<q[i].t){ t++; update(chg[t].p,chg[t].nw); }while(t>q[i].t){ update(chg[t].p,chg[t].old); t--; }11 行未改动