#include using namespace std; typedef long long ll; typedef pair pii; #define fir first #define sec second #define rep(i,a,b) for (int i = (a); i <= (b); ++ i) #define rrp(i,a,b) for (int i = (a); i >= (b); -- i) #define gc() getchar() template inline void read(tp& x) { x = 0; char tmp; bool key = 0; for (tmp = gc(); !isdigit(tmp); tmp = gc()) key = (tmp == '-'); for (; isdigit(tmp); tmp = gc()) x = (x << 3) + (x << 1) + (tmp ^ '0'); if (key) x = -x; } template inline void ckmn(tp& x,tp y) { x = x < y ? x : y; } template inline void ckmx(tp& x,tp y) { x = x < y ? y : x; } int n, m, p; void solve() { read(n), read(m), read(p); int lost = m - (m * (100 - p) / 100); if (n >= m) printf("%d\n", (n - m) / lost + 1); else puts("0"); } int main() { int T; read(T); while (T --) solve(); return 0; }