提交时间:2024-07-09 16:15:59
运行 ID: 49385
#include<bits/stdc++.h> using namespace std; int main() { double sum=0; int a[10],i; double b[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65}; for(i=0;i<10;i++) cin>>a[i]; for(i=0;i<10;i++) sum+=a[i]*b[i]; cout<<fixed<<setprecision(1)<<sum; }