@[C_Boa](/user/1022472)
x/y 错了,应改为 y/x
```cpp
#include<iostream>
using namespace std;
int n;
double x,y;
int main(){
cin>>n>>x>>y;
double a=y/x;
for(int i=2;i<=n;i++){
cin>>x>>y;
double b=y/x;
if((a-b)>0.05) cout<<"worse"<<endl;
else if((b-a)>0.05) cout<<"better"<<endl;
else cout<<"same"<<endl;
}
return 0;
}
```
by OIer_Hhy @ 2024-06-09 11:14:48
@[LALaker](/user/681941) 感谢大佬!
by C_Boa @ 2024-06-09 11:17:50