Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<array>
- #include <bits/stdc++.h>
- #include<string>
- using namespace std;
- int main ()
- {
- int n, t,s,maxs=0,k=0;
- cin>>t;
- while(t--){
- maxs=0;
- k++;
- cin>>n;
- while(n--){
- cin>>s;
- maxs=max(maxs,s);
- }
- cout<<"Case "<<k<<": "<<maxs<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement