#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll=long long; template using V = vector; template using P = pair; using vll = V; using vvll = V; #define rep(i, k, n) for (ll i=k; i<(ll)n; ++i) #define REP(i, n) rep(i, 0, n) #define ALL(v) v.begin(),v.end() template inline bool chmax(T& a, T b) {if (a inline bool chmin(T& a, T b) {if (a>b) {a=b; return true;} return false;} #define DEBUG_VLL(vec) REP(sz, vec.size()) cerr<> p >> q >> a; ll low = 1, high = HIGHINF / 2 + 1; // low: 店内, high: 持ち帰り while (low < high) { ll mid = (low + high) / 2; if (mid + p * mid / 100 < mid + q * mid / 100 + a) low = mid + 1; else high = mid; } ll ans = low; for (ll i = max(low - 5000000, 0LL); i <= low + 5000000; i++) { if (i <= low && i + p * i / 100 >= i + q * i / 100 + a) ans--; else if (i > low && i + p * i / 100 < i + q * i / 100 + a) ans++; } cout << ans << '\n'; return 0; }