题目要我们求得答案为 我们令由于 矩阵的对称性知 #include<cstdio> #include<iostream> using namespace std; typedef long long ll; const int mod =1e9+7; ll a[500005]; int main(){ int n; scanf("%d",&n); ll sum1=0,sum2=0; for(int i=1;i<=n;++i){ scanf("%d",&a[i]); sum1=...