这道题精度比较重要,但是很水
#include<stdio.h>
#include<math.h>
int main()
{
double low,high;
while(scanf("%lf%lf",&low,&high)!=EOF)
{
int ans=1;
low+=10e-8;
high-=10e-8;
int l,h;
while(1)
{
l=(int)(ans*low)/100;
h=(int)(ans*high)/100;
if(l<h)
{
break;
}
ans++;
}
printf("%d\n",ans);
}
}