#include using namespace std; #define N 200007 #define INF 0x3f3f3f3f #define LL long long int main() { int T; scanf("%d", &T); while (T--) { int n, m, p; scanf("%d%d%d", &n, &m, &p); int x = m * p; x = x / 100 + ((x % 100) ? 1 : 0); int y = max(0, n - m) / x; n -= y * x; while (n >= m) { n -= x; y++; } printf("%d\n", y); } return 0; }