#include using namespace std; int main() { int p, q, a; cin >> p >> q >> a; if (p == q) { if (a) { cout << (int)1e9 << '\n'; } else { cout << 0 << '\n'; } return 0; } auto chk = [&](long long x) -> bool { return x * (100 + p) / 100 < x * (100 + q) / 100 + a; }; if (p < q) { assert(false); int res = 0; int x = 1; while (clock() * 1000 / CLOCKS_PER_SEC < 990) { res += chk(x); ++x; } cout << res << '\n'; return 0; } int res = 0; for (int r = 1; r <= 100; ++r) { int ok = -1, ng = 1e7; while (ng - ok > 1) { int mid = (ok + ng) / 2; (chk(100 * mid + r) ? ok : ng) = mid; } res += ok + 1; } cout << res << '\n'; }