1072
#include <iostream> using namespace std; int main(int argc, char** argv) { int n,c; cin>>n; float a,b,x,y; string h[n-1]; cin>>a>>b; x=b/a; for(int i=0;i<n-1;i++){ cin>>a>>b; y=b/a; if(y-x>0.05){ h[i]="brtter"; c++; }else if(x-y>0.05){ h[i]="worse"; c++; }else{ h[i]="same"; c++; } } for(int i=0;i<c;i++){ cout<<h[i]<<endl; } return 0; }