提交时间:2022-11-27 15:03:55
运行 ID: 6157
#include<iostream> using namespace std; int main(){ int s=0; double a[11]={28.9,45.6,35,27.8,56,32.7,78,86.2,43,65}; for(int i=1;i<=n;i++){ int b; cin>>b; s=s+(a*a[i]); } cout<<s; }