题解题解:SP9569 PAIRSUM - Sum of Pairwise Products题解:SP9569 PAIRSUM - Sum of Pairwise Products 已知: 题目要求的是: 作差,得答案: 维护前缀和与前缀平方和即可。