| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 124142 | 李俊博 | 计算平均数 | C++ | Wrong Answer | 1 MS | 272 KB | 877 | 2025-07-11 09:59:17 |
//double #include<iostream> using namespace std; int a[10];//数组的定义 int main(){ /** 88 //int n[10]={1,2,3,4,5,6,7,8,9,10}; int n; cin>>n; //数组输入 for(int i=1;i<=n;i++){ cin>>a[i]; } //数组输出 for(int i=n;i>=1;i--){ cout<<a[i]<<" "; } **/ int s=0; for(int i=1;i<=5;i++){ cin>>a[i]; s+=a[i]; } printf("%.2f",s*5.0); return 0; }
------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
10690.00