提交时间:2021-05-10 20:30:05

运行 ID: 19176

#include<bits/stdc++.h> using namespace std; int t,x,y; double i,s,as; int main(){ cin>>x>>y>>t; s=t*x; while(s>=as){ s=x*t+i*x; as=i*y; i+=0.001; } s=floor(s); cout<<s; return 0; }