提交时间:2021-05-04 17:28:30
运行 ID: 18994
#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-x*t)/(x*1.0))<<" "<<(w/(y*1.0)); return 0; } else w--; } return 0; }