Sunday, April 24, 2016

UVA 11799 : Horror Dash -solution

Unknown
#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;
}

Unknown

Studying at Shahjalal University of Science and Technology, Sylhet.

0 comments:

Post a Comment

Coprights @ 2016,