Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int N, T, S, i, max;
- cin >> T;
- for(i = 1; i <= T; i++) {
- cin >> N;
- max = 0;
- for(int j = 0; j < N; j++){
- cin >> S;
- max = (S > max) ? S : max;
- }
- cout << "Case " << i << ": " << max << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement