提交时间:2021-05-04 17:29:20

运行 ID: 18995

#include<bits/stdc++.h> using namespace std; int x,y,t; int main(){ cin>>x>>y>>t; int w=x*y; while(w!=0){ if(((w-x*t)/(x*1.0))==(w/(y*1.0))){ cout<<w; return 0; } else w--; } return 0; }