- xuxiaofeng 的博客
鸡尾酒疗法
- @ 2026-3-24 16:33:32
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int a,b;
cin>>a>>b;
double x=(double)a/b;
for(int i=1;i<n;i++){
cin>>a>>b;
double y=(double)a/b;
if(y-x>0.05){
cout<<"worse"<<endl;
}else if(x-y>0.05){
cout<<"better"<<endl;
}else{
cout<<"same"<<endl;
}
}
return 0;
}