提交时间:2021-05-11 19:26:27

运行 ID: 19186

#include<bits/stdc++.h> using namespace std; int x,y,t,a,b,c,d,e; int main(){ cin>>x>>y>>t; a=x*t; while((a/y*x)>=y){ c=a/y; b=c*y; d=d+b; a=0; a=c*x; } d+=x*t; cout<<d; return 0; }