#include #include #include #include #include #include using namespace std; typedef long long LL; int T; LL n, m, p, ans; int main() { scanf("%d", &T); for (int cas = 1; cas <= T; cas++) { scanf("%lld%lld%lld", &n, &m, &p); if (m > n) ans = 0; else { LL x = m - m * (100 - p) / 100; ans = (n - m) / x + 1; } printf("%lld\n", ans); } return 0; }