提交时间:2022-11-27 15:30:49
运行 ID: 6169
#include<iostream> using namespace std; int main(){ double a=0; 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; a=a+(b*a[i]) s=s+a } cout<<s; }