#include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;
    
    // 读取鸡尾酒疗法的数据
    int total, effective;
    cin >> total >> effective;
    double x = (double)effective / total;
    
    // 处理每个改进疗法
    for (int i = 1; i < n; ++i) {
        cin >> total >> effective;
        double y = (double)effective / total;
        
        if (y - x > 0.05) {
            cout << "better" << endl;
        } else if (x - y > 0.05) {
            cout << "worse" << endl;
        } else {
            cout << "same" << endl;
        }
    }
    
    return 0;
}

0 条评论

目前还没有评论...

信息

ID
76
时间
ms
内存
MiB
难度
3
标签
递交数
92
已通过
47
上传者