提交时间:2022-11-27 15:09:00

运行 ID: 6159

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