提交时间:2019-12-07 10:44:03
运行 ID: 2704
#include<iostream> using namespace std; int main(){ double ey,r,ew=0; int youku[111]; for(int E=1;E<=10;E++){ cin>>youku[E]; switch(E){ case 1:ew+=youku[E]*28.9;break; case 2:ew+=youku[E]*32.7;break; case 3:ew+=youku[E]*45.6;break; case 4:ew+=youku[E]*78;break; case 5:ew+=youku[E]*35;break; case 6:ew+=youku[E]*86.2;break; case 7:ew+=youku[E]*27.8;break; case 8:ew+=youku[E]*43;break; case 9:ew+=youku[E]*56;break; case 10:ew+=youku[E]*65;break; } } printf("%.1lf",ew); return 0; }