#include using namespace std; int T,n,m,p,c,a; int read(){ int x=0;char ch=getchar(); while(!isdigit(ch)) ch=getchar(); while(isdigit(ch)) x=(x<<3)+(x<<1)+(ch^48),ch=getchar(); return x; } void print(int x){ if(x>=10) print(x/10); putchar(x%10+'0'); } int main(){ T=read(); while(T--){ n=read(),m=read(),p=read(); c=m-m*(100-p)/100; a=n-m; if(a>=0) print(a/c+1),puts(""); else puts("0"); } return 0; }