提交时间:2022-11-27 13:31:50

运行 ID: 6118

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