标签:io for 2014 amp sp c return print
#include <stdio.h>
int main()
{
int n,a[205];
while(scanf("%d",&n)!=EOF)
{
int l,i,m,sum;
for(i=0;i<n;i++)
scanf("%d",&a[i]);
m=n/5;
sum=0;
l=0;
for(i=0;i<n;i++)
l=l+a[i];
sum=l+n+m*5;
printf("%d\n",sum);
}
return 0;
}
题目831-签到-nyoj-20140818,布布扣,bubuko.com
标签:io for 2014 amp sp c return print
原文地址:http://www.cnblogs.com/xiaziteng/p/3919917.html