提交时间:2023-07-02 21:36:41
运行 ID: 21923
#include<bits/stdc++.h> using namespace std; int main(){ float a[10],b[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65},num=0; for(int i=0;i<10;i++){ cin>>a[i]; } for(int i=0;i<10;i++){ num+=a[i]*b[i]; } cout<<num; return 0; }