#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int tt; cin >> tt; while (tt--) { int n, m, p; cin >> n >> m >> p; int ans = 0, x = (m * p + 99) / 100; if (n >= m) { n -= m; ans += n / x; n %= x; n += m; while (n >= m) { n -= x; ans++; } } cout << ans << '\n'; } return 0; }