提交时间:2022-04-22 19:29:04

运行 ID: 37829

#include <iostream> using namespace std; int main() { /*freopen("run.in", "r", stdin); freopen("run.out", "w", stdout);*/ int x, y, t; scanf("%d,%d,%d", &x, &y, &t); for (int i = t * x; true; ++i) { if (i / x > (i + t * y) / y) { cout<<i - 1; break; } } return 0; }