river_dd @ 2022-03-21 23:47:12
int main()
{
int n,a[1003],max=0,min=11;
double sum=0;
scanf("%d",&n);
for(int i = 0;i<=n;++i)
{
scanf("%d",&a[i]);
if(a[i]>max)
{
max=a[i];
}
if(a[i]<min)
{
min=a[i];
}
sum+=a[i];
}
printf("%.2f",sum);
return 0;
}
by river_dd @ 2022-03-22 00:10:24
已解决