提交时间:2022-11-27 15:28:02
运行 ID: 6167
#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=0;i<=11;i++){ int b; cin>>b; s=s+(b*a[i]); } cout<<s; }