提交时间:2019-12-07 10:40:27
运行 ID: 2700
#include<iostream> using namespace std; int main(){ double a[11]={0.0,28.9,32.7,45.6,78,35,86.2,27.8,43,56,65}; int b[11]; double n=0.0; for(int i=1;i<=10;i++){ cin>>b[i]; n=n+b[i]*a[i]; } cout<<n; }