提交时间:2024-09-22 18:09:23
运行 ID: 51568
#include<bits/stdc++.h> using namespace std; int main() { double manei=0; int a[10]; double b[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65}; for(int i=0;i<10;i++){ cin>>a[i];} for(int i=0;i<10;i++){ manei+=a[i]*b[i];} cout<<fixed<<setprecision(1)<<manei; }