摘要: 线性求逆元: ll fac[3000005], inv[3000005], ans[3000005]; ll qpow(ll a, ll x, ll m) { ll ans = 1; while (x) { if (x & 1) { ans = ans * a % m; } x >>= 1; a = 阅读全文
posted @ 2024-11-17 15:04 A-Problem-Solver 阅读(2) 评论(0) 推荐(0) 编辑