#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) { if (a) { cout << (int)1e9 << '\n'; } else { int res = 0; for (int r = 1; r <= 100; ++r) { if (p * r / 100 < q * r / 100) { res += 1e7; } } 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'; }