Advertisement
noshin98

uva 11875

Jul 10th, 2016
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int t,k,n,i,j,a[20],ans,b,temp;
  5.     while(scanf("%d",&t)==1)
  6.     {
  7.         for(i=1;i<=t;i++)
  8.         {
  9.             scanf("%d",&n);
  10.             for(k=1;k<=n;k++)
  11.             {
  12.  
  13.  
  14.  
  15.                 scanf("%d",&a[k]);
  16.  
  17.             }
  18.                 printf("Case %d: %d\n",i,a[k/2]);
  19.  
  20.         }
  21.     }
  22.     return 0;
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement