/* -*- coding: utf-8 -*- * * 1101.cc: No.1101 鼻水 - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { int v, t, p; scanf("%d%d%d", &v, &t, &p); ll w = (ll)v * (p + 1); t--; ll r = w / t * (t + 1) + w % t + 1; printf("%lld\n", r); return 0; }