#include <stdio.h>
int main()
{
int T;
scanf("%d",&T);
int i;
int a,b;
for(i =0; i<T;i++)
{
scanf("%d%d",&a,&b);
if(b==a)
printf("Case %d: %d\n",i+1,(19+b*4));
else if(a<b)
printf("Case %d: %d\n",i+1,(19+b*4));
else if(a>b)
printf("Case %d: %d\n",i+1,(19+a*4+(a-b)*4));
}
return 0;
}
logic ta bhjhi na brother
উত্তরমুছুন