1
2026-10-06 14:42:27
发布于:辽宁
1阅读
0回复
0点赞
#include <bits/stdc++.h>
#include <cstdio>
using namespace std;
double a[10];
double a1[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65};
float cnt;
int main(){
for(int x=0;x<10;x++){
cin>>a[x];
}
for(int y=0;y<10;y++){
cnt+=a1[y]*a[y];
}
printf("%.1lf",cnt);
}
这里空空如也







有帮助,赞一个