#include <stdio.h>
#include <stdlib.h>
int main()
{
float n,x=0.0,y=0.0,z=0.0,i;
while(scanf("%f",&n)!=EOF)
{
for(i=1.0;i<=n;i++)
{
int t;
scanf("%f\n",&t);
if(t>70)
{
if(t%70==0)
{
y+=t/70*0.1;
}
else
{
z+=t/70*0.1+0.1;
}
}
else(t<=70)
{
x+=0.1;
}
}
printf("%f\n",x+y+z);
}
system("pause");
return 0;
}
|