Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int t,n,c,k,i,max;
- while (scanf("%d",&t)==1)
- {
- for(i=1;i<=t;i++)
- {
- max=0;
- scanf("%d",&n);
- for (k=0;k<n;k++)
- {
- scanf("%d",&c);
- if (c>max)
- max=c;
- }
- printf("Case %d: %ldn",i,max);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement