| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 18994 | 张熙媛 | 龟兔赛跑 | C++ | Wrong Answer | 0 | 0 MS | 244 KB | 251 | 2021-05-04 17:28:30 |
#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; }