Compile Error
/in/foo.c:3:25: fatal error: bits/stdc++.h: No such file or directory #include <bits/stdc++.h> ^ compilation terminated.
代码
//#pragma G++ optimize ("O2")
//#pragma GCC optimize("O2")
#include <bits/stdc++.h>
using namespace std;
int m,n;
int main()
{
// freopen("sort.in","r",stdin);
// freopen("sort.out","w",stdout);
int n;
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
int x,y,ans=0;
scanf("%d %d",&x,&y);
while(x!=y)
{
ans++;
if(y>x) swap(x,y);
x/=2;
}
printf("%d\n",ans);
}
return 0;
}