提交时间:2021-05-11 19:15:33
运行 ID: 19185
#include<bits/stdc++.h> using namespace std; int x,y,t,a,b,c,d; int main(){ cin>>x>>y>>t; a=x*t; while((a%y*x)>=y){ c=a/y; d=d+c*y; a=a-c*y; } d+=a; cout<<d; return 0; }