提交时间:2019-12-07 14:08:23

运行 ID: 2780

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