Advertisement
otot957

Untitled

Aug 12th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include<array>
  3. #include <bits/stdc++.h>
  4. #include<string>
  5. using namespace std;
  6. int main ()
  7.  
  8.  
  9.  
  10. {
  11.     int n, t,s,maxs=0,k=0;
  12.     cin>>t;
  13.     while(t--){
  14.         maxs=0;
  15.         k++;
  16.         cin>>n;
  17.         while(n--){
  18.                 cin>>s;
  19.                 maxs=max(maxs,s);
  20.  
  21.         }
  22.         cout<<"Case "<<k<<": "<<maxs<<endl;
  23.  
  24.     }
  25.  
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement