OJ-Problems-Source/HDOJ/1701_autoAC.cpp
2016-08-17 15:12:28 +08:00

20 lines
330 B
C++

#include<iostream>
using namespace std;
int main()
{ double j,k;int n,i;
cin>>n;
while(n--)
{
cin>>j>>k;
i=2;
while(i>1)
{
if(int(k*i*0.01)-int(j*i*0.01)==1)
break;
i++;
}
cout<<i<<endl;
}
return 0;
}