1:手写取模会很快,建议手写取模函数:
void Mo(int &a, int b) { a > b ? a -= b : 1; }
2: 函数名前加 inline
3: 用 register int
4:不需要开 long long