提交时间:2024-09-21 23:22:24
运行 ID: 51480
#include<bits/stdc++.h> using namespace std; int main(){ int n; double b[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65},sum=0; for(int i=0;i<10;i++){ cin>>n; sum=sum+b[i]*n; } printf("%.1lf",sum); return 0; }