提交时间:2024-09-24 22:32:18

运行 ID: 51704

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