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