# include using namespace std; namespace Base{ # define mr make_pair typedef long long ll; typedef double db; const int inf = 0x3f3f3f3f, INF = 0x7fffffff; const ll infll = 0x3f3f3f3f3f3f3f3fll, INFll = 0x7fffffffffffffffll; template void read(T &x){ x = 0; int fh = 1; double num = 1.0; char ch = getchar(); while (!isdigit(ch)){ if (ch == '-') fh = -1; ch = getchar(); } while (isdigit(ch)){ x = x * 10 + ch - '0'; ch = getchar(); } if (ch == '.'){ ch = getchar(); while (isdigit(ch)){num /= 10; x = x + num * (ch - '0'); ch = getchar();} } x = x * fh; } template void chmax(T &x, T y){x = x < y ? y : x;} template void chmin(T &x, T y){x = x > y ? y : x;} } using namespace Base; int T; int main(){ read(T); int n, m, p; while (T--){ read(n); read(m); read(p); int d = m * p / 100 + (m * p % 100 != 0); if (n < m) printf("%d\n", 0); else printf("%d\n", (n - m) / d + 1); } return 0; }