Lmz886017 @ 2024-12-27 22:31:21
#include<bits/stdc++.h>
using namespace std;
int n;
double a[105],c[105],m=1.0;
string b[105];
int main(){
cin>>n;
cin>>a[0]>>c[0];
m=1.0*c[0]/a[0];
for(int i=1;i<n;i++){
cin>>a[i]>>c[i];
if((c[i]/a[i]-m)*100.0>m*5.0) b[i]="better";
else if((m-c[i]/a[i])*100.0>m*5.0) b[i]="worse";
else b[i]="same";
}
for(int i=1;i<n;i++) cout<<b[i]<<endl;
return 0;
}