给定 NNN 个整数 A1,...,AnA_1,...,A_nA1,...,An,求出 $ \sum_{i=1}^{n-1}{\sum_{j=i+1}^{n}{a_i\times a_j}} $的值。 答案对 109+710^9+7109+7 取模。
使用您的 gxyz 通用账户