Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main(){
- ios::sync_with_stdio(0); cin.tie(0);
- int t,k=0;
- string s;
- cin>>t;
- getline(cin,s);
- while(t--){
- k++;
- getline(cin,s);
- stringstream ss;
- ss.str(s);
- int ans=-1,v;
- while(ss>>v) ans = max(ans,v);
- cout<<"Case "<<k<<": "<<ans<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement