Saturday, April 30, 2016

UVA problem 11799 - Horror Dash

Problem link (Click here)

#include<cstdio>
#include<iostream>

using namespace std;

int main()
{
  int test_case,n,i,a,c=0;

  cin >> test_case;
  while(test_case--)
  {
      c++;
      int max=0;
      cin>>n;
      for(i=0;i<n;i++){
            cin>>a;
            if(a>max)
                max=a;
      }
       cout <<"Case "<< c <<": "<<max<<endl;
  }
  return 0;
}




No comments:

Post a Comment