Sunday, May 1, 2016

Codeforces 200B - Drinks

#include<stdio.h>
int main()
{
    long long t,i;
    scanf("%lld",&t);
    double a[t],sum=0;
    for(i=0; i<t; i++){
        scanf("%lf",&a[i]);
        sum+=a[i];
    }
    printf("%lf\n",sum/t);
    return 0;
}

No comments:

Post a Comment