容易掉坑,权重3.5+7.5=11
#include<iostream> using namespace std; int main() { double a,b; cin>>a>>b; printf("MEDIA = %.5lf",(a*3.5+b*7.5)/11.0); return 0; }