#include <stdio.h>
int main()
{ int t=0,runners=0,max,x,j,i;
scanf("%d",&t);
for(i=1;i<t+1;i++){
max=-1;
scanf("%d",&runners);
for(j=0;j<runners;j++){
scanf("%d",&x);
if(x>max)
max=x;
}
printf("Case %d: %d\n",i,max);
}
return 0;
}
int main()
{ int t=0,runners=0,max,x,j,i;
scanf("%d",&t);
for(i=1;i<t+1;i++){
max=-1;
scanf("%d",&runners);
for(j=0;j<runners;j++){
scanf("%d",&x);
if(x>max)
max=x;
}
printf("Case %d: %d\n",i,max);
}
return 0;
}
No comments:
Post a Comment