疯狂的小面包 题解:
P1128
发布于2026年3月5日 13:20
阅读数 110
C++ cin居然过不了,需要加上cin.tie(0)就能过
#include<bits/stdc++.h>
using namespace std;
int main(){
cin.tie(0);
double D,X,Y,T;
while(cin>>D>>X>>Y>>T){
double t1=0,t2=0;
t1=D/Y;
t2=D/X+T;
if(t2<t1)cout<<"YES\n";
else cout<<"NO\n";
}
return 0;}
登录后发布评论
现在我关闭流同步也不行