参考链接
LL inv[maxn];
inline void inv_init()
{
inv[0] = inv[1] = 1;
for(int i=2; i<maxn; i++)
inv[i] = (LL)(mod - mod / i) * inv[mod % i] % mod;
}
参考链接
LL inv[maxn];
inline void inv_init()
{
inv[0] = inv[1] = 1;
for(int i=2; i<maxn; i++)
inv[i] = (LL)(mod - mod / i) * inv[mod % i] % mod;
}
转载于:https://www.cnblogs.com/LiHior/p/9111126.html