#include<bits/stdc++.h>

using namespace std;

int main(){

double a[10]=

{28.9,32.7,45.6,78,35,86.2,27.8,43,56,65};

int n;

double s=0;

for(int i=0; i<=9; i++){

	cin>>n;

	s+=a[i]*n;

}

printf("%.1lf",s);

return 0;

}

2 条评论

  • @ 2026-4-27 20:06:08

    ^.^

    • @ 2026-4-27 20:05:21

      #include<bits/stdc++.h>

      using namespace std;

      int main(){

      double a[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65};
      int n;
      
      double s=0;
      
      for(int i=0; i<=9; i++){
      
      	cin>>n;
      
      	s+=a[i]*n;
      
      }
      
      printf("%.1lf",s);
      
      return 0;
      

      }

      • 1

      信息

      ID
      106
      时间
      ms
      内存
      MiB
      难度
      4
      标签
      (无)
      递交数
      492
      已通过
      219
      上传者