下面这些技巧可能可以帮到你:
模数使用 unsigned 和 constexpr
unsigned
constexpr
线段树换用树状数组
i++ i-- -> ++i --i 并尽量使用位运算
i++ i--
++i --i
#pragma GCC unroll(4)
这个
尽量不要在中午提交