#include #define LL long long using namespace std;bool h1; int T,t,m,n,k; bool h2;int main(){ cin>>T; while(T--){ t=0; scanf("%d%d%d",&n,&m,&k); while(n>=m){ t++,n=n-m+m*(100-k)/100; } printf("%d\n",t); } return 0; }