#include #define fo(i,a,b) for(int i=a;i<=b;++i) #define fod(i,a,b) for(int i=a;i>=b;--i) #define max(q,w) ((q)>(w)?(q):(w)) #define min(q,w) ((q)<(w)?(q):(w)) using namespace std; typedef long long LL; const int N=100500,INF=1e9; int read(int &n) { int q=1;n=0;char ch=' '; for(;ch!='-'&&(ch<'0'||ch>'9');ch=getchar()); if(ch=='-')q=-1,ch=getchar(); for(;ch<='9'&&ch>='0';ch=getchar())n=(n<<1)+(n<<3)+ch-48; return n; } int n,m,ans; int a[N]; int main() { int q,w,_; read(_); while(_--) { read(n),read(m),read(q); w=m*(100-q)/100; ans=0; for(;n>=m;++ans)n-=m-w; printf("%d\n",ans); } return 0; }