Create 5835.cpp

pull/35/head
Kirigaya Kazuto 2016-08-14 17:26:48 +08:00 committed by GitHub
parent f0ee2f9bec
commit 9ad5bcff0c
1 changed files with 22 additions and 0 deletions

22
HDOJ/5835.cpp Normal file
View File

@ -0,0 +1,22 @@
#include <cstdio>
using namespace std;
int main()
{
int t;
scanf("%d",&t);
for(int test=1;test<=t;test++)
{
int n;
scanf("%d",&n);
long long ans=0;
for(int i=0;i<n;i++)
{
int tmp;
scanf("%d",&tmp);
ans+=tmp;
}
ans/=2;
printf("Case #%d: %lld\n",test,ans);
}
return 0;
}