### @[lyh20090818](/user/1125005)
```cpp
#include <iostream>
using namespace std;
struct S
{
int a, b;
double d;
void set() {
d = (double)(b) / (double)(a) * 100.0;
}
}a[22];
int main() {
int n;
cin >> n;
for (int i = 1;i <= n;i++) {
cin >> a[i].a >> a[i].b;
a[i].set();
if (i > 1) {
if (a[i].d - a[1].d > 5) {
cout << "better" << endl;
}
else if (a[1].d - a[i].d > 5) {
cout << "worse" << endl;
}
else cout << "same" << endl;
}
}
return 0;
}
```
### 祝你 $ AK $ $ IOI $
by cyx012113 @ 2024-02-05 21:50:28