mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
23 lines
393 B
C++
23 lines
393 B
C++
|
#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;
|
||
|
}
|