#include #include int T; int main(){ scanf("%d" ,&T); while(T--){ int n ,m ,p; scanf("%d%d%d" ,&n ,&m ,&p); int cnt = 0; while(n >= m){ n = n - m + m * (100 - p) / 100; ++cnt; } printf("%d\n" ,cnt); }return 0; }