提交时间:2019-12-07 14:15:27

运行 ID: 2787

#include<iostream> using namespace std; int main(){ int a[10]; double f=0.0,b[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65}; for(int i=0;i<10;i++){ cin>>a[i]; f+=b[i]*a[i]; } printf("%.1lf",f); return 0; }