#include using std::cin; using std::cout; int n, m, p; void work() { int lost; cin >> n >> m >> p, lost = m - m * (100 - p) / 100; cout << (n >= m ? (n - m) / lost + 1 : 0) << '\n'; } int main() { int T; std::ios::sync_with_stdio(false), cin.tie(NULL); for (cin >> T; T; --T) work(); return 0; }