#include using namespace std; int t, n, m, p; int main() { cin >> t; while(t--) { cin >> n >> m >> p; int c = m - (int)(m * (100 - p) / 100.0); if(n < m) cout << 0 << endl; else cout << (n - m) / c + 1 << endl; } }