#include <stdio.h>
int main()
{
int x,y,cases,i;
double ansf=0;
scanf("%d",&cases);
for(i=0;i<cases;i++){
scanf("%d %d",&x,&y);
printf("Case %d: %.2f\n",i+1,x+5.0*y/9.0);
}
return 0;
}
int main()
{
int x,y,cases,i;
double ansf=0;
scanf("%d",&cases);
for(i=0;i<cases;i++){
scanf("%d %d",&x,&y);
printf("Case %d: %.2f\n",i+1,x+5.0*y/9.0);
}
return 0;
}
No comments:
Post a Comment