版本比较
值得一记的小技巧
正文
增加 7 行删除 0 行
210 行未改动全部展开211212213214215216217218219220221210 行未改动全部展开$$[x \bmod m<y \bmod m]=\lfloor \frac{x}{m}\rfloor-\lfloor \frac{y}{m}\rfloor-\lfloor \frac{x-y}{m}\rfloor$$
72.求一个 SCC 的所有环长之 $\mathrm{gcd}$:对于任意一颗外向生成树,令 $u$ 至根距离为 $d_u$,则结果为$$\operatorname{gcd}(w_{(u,v)}+d_u-d_v)$$
73.对于线性空间 $T$,设:$$f(x)=\min_{y \in T} x\oplus y$$$$g(x)=\max_{y \in T} x\oplus y$$则有:$$f(x \oplus y)=f(x)\oplus f(y)=g(x)\oplus g(y)$$$$g(x \oplus y)=g(x)\oplus f(y)$$