思路:先求出平均值,
-1 -2 7 -4 全部减去平均值
0 -3 7 -4
0 0 4 -4
0 0 0 0
#include<bits/stdc++.h>
using namespace std;
int a[10001],n,sum=0,ans=
思路:先求出平均值,
-1 -2 7 -4 全部减去平均值
0 -3 7 -4
0 0 4 -4
0 0 0 0
#include<bits/stdc++.h>
using namespace std;
int a[10001],n,sum=0,ans=