@[__Doraemon__](/user/1283847)
```cpp
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,a,b;
cin>>n>>a>>b;
double t;
t=(double)b/a;
for(int i=0;i<n-1;i++)
{
cin>>a>>b;
if((double)b/a-t>0.05)
cout<<"better"<<endl;
else
{
if(t-(double)b/a>0.05)
cout<<"worse"<<endl;
else
cout<<"same"<<endl;
}
}
return 0;
}
AC code
```
by lzy13915136909 @ 2024-05-23 11:57:33
《题解是当摆设的》
by CMZ15079761339 @ 2024-10-04 14:32:30