#include<cstdio>
#include<cstring>
#include<iostream>
using namespace std;
int main()
{
int ant=0;
int t;
__int64 a,b;//数值过大,则用——int64来定义
scanf("%d",&t);
while(t--)
{
int k=0;
cin>>a>>b;//直接用cin输入就行
__int64 tem;
while(a>b)
{tem=a/2+1;//求数的最大余数
a=a-(a%tem);
k++;
}
ant++;
printf("Case %d: %d\n",ant,k);
}
return 0;
}
SDUT ACMH - A-B Game FZU - 2147
猜你喜欢
转载自blog.csdn.net/qq_41374539/article/details/81208840
今日推荐
周排行