#include #include #include using namespace std; typedef long long lint; typedef vectorvi; typedef pairpii; #define rep(i,n)for(int i=0;i<(int)(n);++i) const double ans1=-1.1638780202724224; const double ans2=-1.3555525130426718; const double ans4=-1.995873239222159; const int DEBUG=0; #if 0 int main(){ double coef[5]; rep(i,8) { double c;cin>>c; if(i==0)coef[0]+=c; else if(i==7)coef[1]+=c; else if(i==1||i==2||i==4)coef[2]+=c; else coef[3]+=c; } rep(i,8){ double c;cin>>c; coef[4]+=c; } if(DEBUG){ cerr<<"coef:"; rep(i,5)cerr<<" "<>ans; if(DEBUG){ cerr<>c; if(i==0)coef[0]+=c; else if(i==7)coef[1]+=c; else if(i==1||i==2||i==4)coef[2]+=c; else coef[3]+=c; } rep(i,8){ double c;cin>>c; coef[4]+=c; } double ans=0; ans-=coef[1]*ef; ans-=coef[3]*gh; ans+=-coef[4]/4*egi; printf("%.15f\n",ans); } #endif