int main()
{
long long int a,b,i,temp,test,z,x,res;
scanf("%lld",&test);
for(i=1;i<=test;i++){
scanf("%lld %lld",&a,&b);
if(a>b){
temp=a;
a=b;
b=temp;
}
if(a%3==0)
z=(a/3)*2;
else{
z=((a/3)*2)+1;
}
b=b+1;
if(b%3==0)
x=(b/3)*2;
else{
x=((b/3)*2)+1;
}
res=x-z;
printf("Case %lld: %lld\n",i,res);
}
}
vai ai equation gula kivabe develop korsen....kindly aktu bolle valo hoy.
ReplyDelete