提交时间:2019-12-07 13:59:59

运行 ID: 2771

#include<iostream> using namespace std; int main(){ float y[10]={28.9,32.7,45.6,78.0,35.0,86.2,27.8,43.0,56.0,65.0},b[10],f; for(int i=0;i<10;i++){ cin>>b[i]; f+=b[i]*y[i]; } printf("%.1f",f); return 0; }