Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5372 邓小龙 计算平均数 C++ Wrong Answer 0 MS 272 KB 443 2024-11-14 11:31:23

Tests(0/10):


Code:

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


Run Info:

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