#include using namespace std; int main(){ int T; cin>>T; int n,m,p; while(T--){ cin>>n>>m>>p; int del=m-m*(100-p)/100,ans=0; while(n>=m&&n>=del){ n-=del; ans++; } printf("%d\n",ans); } return 0; }