Sunday, April 24, 2016

Published April 24, 2016 by with 0 comment

UVA 11799 : Horror Dash -solution

#include <stdio.h>
int main()
{
    int t,c=1,n,std[100],s,i;
    scanf("%d",&t);
    while (t--)
    {
        scanf("%d",&n);
        s=0;
        for (i=0;i<n;i++)
        {
            scanf("%d",&std[i]);
            if (s<=std[i]) s=std[i];
        }
        printf("Case %d: %d\n",c++,s);
    }
    return 0;
}
      edit

0 comments:

Post a Comment