提交时间:2022-07-13 13:11:58
运行 ID: 46425
#include<iostream> using namespace std; int main(){ int b[10]; double sum=0.0,a[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65}; for(int i=0;i<10;i++){ cin>>b[i]; sum+=b[i]*a[i]; } printf("%.1lf",sum); return 0; }