Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
74523 | 邢逸轩 | 龟兔赛跑 | C++ | Wrong Answer | 20 | 0 MS | 248 KB | 210 | 2023-05-27 14:15:16 |
#include<bits/stdc++.h> using namespace std; int x,y,t,tans; int main(){ cin>>x>>y>>t; int c=x*t; double ans=c*1.0/(y-x)*y; if(int(ans)==ans) tans=ans-1; else tans=ans; cout<<tans; return 0; }