/* * Author: Kewth * Date: echo -n ' ' && date +%Y.%m.%d # Type "!!sh" in Vim. * Solution: To be updated after "Accept". * Digression: * CopyRight: %%%%%%%%%%% %%%% %%%% %% %%━━■%% %% %% %% %%% %% % %% %% % %%%%■% %% %%% %% %%% %%%%%%%%%%%%%%■%% %%%%%% */ #include #include #define debug(...) fprintf(stderr, __VA_ARGS__) typedef long long ll; static struct { inline operator int () { int x; return scanf("%d", &x), x; } } read; int main () { int T = read; while (T --) { int n = read, m = read, p = read; if (m > n) { puts("0"); continue; } int min = (m * p + 99) / 100; int ans = (n - m) / min + 1; printf("%d\n", ans); } }