delete pics to save space
This commit is contained in:
17
history_source/信息学奥赛一本通/1.4.1.2.cpp
Normal file
17
history_source/信息学奥赛一本通/1.4.1.2.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
scanf("%d",&n);
|
||||
double add,x;
|
||||
for(int i=0;i<n;i++)
|
||||
{
|
||||
scanf("%lf",&x);
|
||||
add+=x;
|
||||
}
|
||||
add=add/n;
|
||||
printf("%lf",add);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user