#include #define pb push_back #define mp make_pair #define fi first #define se second using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair pii; typedef pair pll; template bool chkmax(T &x,T y){return x bool chkmin(T &x,T y){return x>y?x=y,true:false;} int readint(){ int x=0,f=1; char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();} while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();} return x*f; } int n,m,p; int main(){ int T=readint(); while(T--){ n=readint(); m=readint(); p=readint(); int tmp=m-(int)(1.0*m*(100-p)/100); if(n>=m) printf("%d\n",(n-m)/tmp+1); else printf("0\n"); } return 0; }