mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
997ec50f19
1700-1799
20 lines
330 B
C++
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;
|
|
}
|