提交时间:2025-12-21 21:27:02

运行 ID: 77294

#include<bits/stdc++.h> using namespace std; double s[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65}; int t[10]; int main(){ double f=0; for(int i=0;i<10;++i){ cin>>t[i]; f+=s[i]*t[i]; } cout<<fixed<<setprecision(1)<<f; return 0; }