//就是一个前缀乘+逆元就OK了!!! #include <bits/stdc++.h> using namespace std; #define int long long const int mod = 1e9 + 7; const int N = 1e5 + 9; int a[N]; int fpow(int a, int b) { a %= mod; int res = 1; while (b) { if (b & 1) res = res * a % mod; a = a * a % mod; b >>= 1; } return res; } int ...