疯狂的小Car 题解:c++
P1128
发布于2026年1月20日 15:16
阅读数 108
#include <bits/stdc++.h>
using namespace std;
int main()
{
double S,Vcar,Vman,Wait;
while(cin >> S >> Vcar >> Vman >> Wait){
if((S/Vcar + Wait) < S/Vman)
cout << "YES" << endl;
else
cout << "NO" << endl;
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发