解 平均数,贪心 代码 #include<cstdio> #include<iostream> #include<cmath> using namespace std; int n; long long a[100010],sum,avg,cha,ans,T; long long readd(){