这是我的 AC 0分代码
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; double sum=a*b+c*d; cout<<fixed<<setprecision(1)<<sum*1.0; cout<<fixed<<setprecision(1)<<sum/(b+d)*1.0; return 0; }