/* -*- coding: utf-8 -*- * * 928.cc: No.928 軽減税率? - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ const int MAX_X = 1000000000; /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ inline ll f(int p, int x, int a = 0) { return (ll)(100 + p) * x / 100 + a; } /* main */ /* yp = (100+p)/100*x yq = (100+q)/100*x+a yp < yq -> (100+p)x < (100+q)x+100a -> (p-q)x < 100a -> x < 100a/(p-q) */ int main() { int p, q, a; scanf("%d%d%d", &p, &q, &a); if (f(p, MAX_X) < f(q, MAX_X, a)) printf("%d\n", MAX_X); else { int maxx = 100 * (a + 1); int cnt = 0; for (int x = 1; x < maxx; x++) if (f(p, x) < f(q, x, a)) cnt++; printf("%d\n", cnt); } return 0; }