这里的权重就是指的加权平均里的权,平均不仅仅只有五五开 的,也有任意开的,这就是3.5,7.5开的
#include<bits/stdc++.h>
using namespace std;
int main()
{
double a,b;
cin>>a>>b;
printf("MEDIA = %.5lf",(a*3.5+b*7.5)/11);
return 0;
}
这里的权重就是指的加权平均里的权,平均不仅仅只有五五开 的,也有任意开的,这就是3.5,7.5开的
#include<bits/stdc++.h>
using namespace std;
int main()
{
double a,b;
cin>>a>>b;
printf("MEDIA = %.5lf",(a*3.5+b*7.5)/11);
return 0;
}