提交时间:2024-10-27 16:02:15
运行 ID: 54376
#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; }