提交时间:2019-12-07 14:30:15

运行 ID: 2833

#include<stdio.h> int main() { int a[11]={0}; float c=0; for(int i=1;i<=10;i++) scanf("%d",&a[i]); c=28.9*a[1]+32.7*a[2]+45.6*a[3]+78*a[4]+35*a[5]+86.2*a[6]+27.8*a[7]+43*a[8]+56*a[9]+65*a[10]; printf("%.1f\n",c); return 0; }