Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106950 | 刘子锐 | 计算平均数 | C++ | Wrong Answer | 0 MS | 264 KB | 253 | 2025-01-17 10:11:00 |
#include<bits/stdc++.h> using namespace std; int main(){ int n=5; int a[n]; int sum = 0; for (int i = 0; i <n; i++) { sum = sum + a[i]; } float p = sum * 1.0 / n; printf("%.2f", p); cout << endl; return 0; }
------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
3410819.25