这题简直就是逗比。。。。枚举人数 事 a b 不相同就行。。。。。
没意思。。。
AC代码如下:
#include <iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
using namespace std;
int main(){
int i, T;
double a, b;
cin >> T;
while( T-- ){
cin >> a >> b;
i = 1;
while( true ){
if( (int)( a * i / 100 ) < (int)( b * i / 100 ) ){
break;
}
i++;
}
cout << i << endl;
}
return 0;
}