#include #include #include int n,m,p,c,ans; void solve(){ scanf("%d%d%d",&n,&m,&p); c = ceil(m*p/100.); ans = (n-m)/c; n -= ans*c; if(n>=m) ans++; printf("%d\n",std::max(ans,0)); } int main(){ int T; scanf("%d",&T); while(T--) solve(); }