Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
127713 葛锦东 计算平均数 C++ Wrong Answer 0 MS 272 KB 274 2025-07-28 17:35:19

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a[5]; for (int n = 0; n < 5; n++) { cin >> a[n]; } int sum = 0; for (int i = 0; i < 5; i++) { sum = sum + a[i]; } double b = sum / 5.0; printf("%.2f", b); cout <<endl; return 0; }


Run Info:

------Input------
679 849 98 256 256
------Answer-----
427.60 679 849
------Your output-----
427.60