Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5089 张文曦 计算平均数 C++ Wrong Answer 0 MS 260 KB 389 2024-11-02 14:04:15

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double a[5],n=0; for(int i=0;i<5;i++){ cin>>a[i]; n=n+a[i]; } n=n/5; cout<<n; return 0; }


Run Info:

------Input------
986 438 342 699 699
------Answer-----
632.80 986 699 699
------Your output-----
632.8