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