#include #include #include #include #include #include #include using namespace std; #define int long long #define endl "\n" constexpr long long INF = (long long)2e18; constexpr long long MOD = 1'000'000'007; struct fast_io { fast_io(){ std::cin.tie(nullptr); std::ios::sync_with_stdio(false); }; } fio; int V, T, P; int check(int t){ t--; if(t <= (P) * (V) + (V - 1) + min(max(0ll,t - P), (t - 1)/(T) + 1)) return true; return false; } signed main(){ cout<>V>>T>>P; int l = 1, h = INF, m; while(l+1 < h){ m = (l + h) / 2; if(check(m)) { l = m; } else { h = m; } } cout<