#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n,a,b;
    double x,y;
    cin>>n;
    cin>>a>>b;
    x=(double)b/a;
    for(int i=1;i<n;i++)
    {
        cin>>a>>b;
        y=(double)b/a;
        if ((y-x)>0.05)cout<<"better"<<endl;
        else if ((x-y)>0.05)cout<<"worse"<<endl;
        else cout<<"same"<<endl;
    }
    return 0;
}

0 comments

No comments so far...

Information

ID
634
Time
1000ms
Memory
256MiB
Difficulty
10
Tags
# Submissions
2
Accepted
2
Uploaded By