Hello World
Thursday, 10 May 2012
UVa 11875 Brick Game Solution
#include<stdio.h>
int main()
{
int n,t,a[100],i,j;
while(scanf("%d",&t)==1)
{
for(i=1;i<=t;i++)
{
scanf("%d",&n);
for(j=0;j<n;j++)
scanf("%d",&a[j]);
printf("Case %d: %d\n",i,a[j/2]);
}
}
}
1 comment:
Unknown
3:41 pm, November 17, 2014
This comment has been removed by a blog administrator.
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
This comment has been removed by a blog administrator.
ReplyDelete