#include<stdio.h>
int main()
{
int n,test,i,p,large,c;
scanf("%d",&test);
for(i=1;i<=test;i++)
{
scanf("%d",&n);
p=1;
scanf("%d",&large);
for(p=2;p<=n;p++)
{
scanf("%d",&c);
if(large<c)
large=c;
}
printf("Case %d: %d\n",i,large);
}
return 0;
}
int main()
{
int n,test,i,p,large,c;
scanf("%d",&test);
for(i=1;i<=test;i++)
{
scanf("%d",&n);
p=1;
scanf("%d",&large);
for(p=2;p<=n;p++)
{
scanf("%d",&c);
if(large<c)
large=c;
}
printf("Case %d: %d\n",i,large);
}
return 0;
}
No comments:
Post a Comment