| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129652 | 薛承谦 | 计算平均数 | C++ | Wrong Answer | 1 MS | 272 KB | 336 | 2025-09-01 15:14:04 |
#include<algorithm> #include<cstring> #include<bits/stdc++.h> using namespace std; int main(){ //初始化 int a[5]; int b=0; //输入 for(int i=0;i<5;i++){ cin>>a[i]; b=b+a[i]; } //输出+计算 printf("%.2f\n",float(b/5)); for(int i=1;i<=5;i++){ if(i>(b/5)){ cout<<i<<" "; } } return 0; }
------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
427.00