ybt官网也是,不然样例5过不了。
by sIGerIum @ 2024-08-04 14:03:57
@[ptsxlhs](/user/725114) @[sIGerIum](/user/1367761)
为什么我是0.05也AC了???
```
#include<cstdio>
int n;double x,y,ans;
int main(){
scanf("%d",&n);
scanf("%lf%lf",&x,&y);ans=y/x;
while(--n){
scanf("%lf%lf",&x,&y);
if(y/x-ans>0.05)printf("better\n");
else if(ans-y/x>0.05)printf("worse\n");
else printf("same\n");
}
return 0;
}
```
by jebfghbbcdsl @ 2024-08-08 09:09:23
@[jebfghbbcdsl](/user/1343286) luogu改样例了可能,我拿你代码去 [ybt官网 1072:鸡尾酒疗法](https://ybt.ssoier.cn/problem_show.php?pid=1072) 提交了,样例5过不了。
by sIGerIum @ 2024-08-08 09:40:03
@[sIGerIum](/user/1367761) Oh,I know.
by jebfghbbcdsl @ 2024-08-08 09:46:34