提交时间:2019-12-07 14:02:33

运行 ID: 2776

#include<iostream> using namespace std; int main(){ int a[10]; double b[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65},c; for(int i=0;i<10;i++){ cin>>a[i]; c+=a[i]*b[i]; } printf("%.1lf",c); return 0; }