Run ID:152925

提交时间:2026-05-06 14:53:32

#include<bits/stdc++.h> using namespace std; int main(){ float a[15]; float b[15]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65},s=0; for(int i=0;i<10;i++){ cin>>a[i]; } for(int i=0;i<10;i++){ s+=a[i]*b[i]; } printf("%.1f\n",s); return 0; }