题解
2025-03-26 20:46:09
发布于:北京
9阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
double a,b,x;
cin>>a>>b;
x=b/a;
n--;
while (n--){
cin>>a>>b;
double y=b/a;
if (y-x>0.05){
cout<<"better";
}else if (x-y>0.05){
cout<<"worse";
}else{
cout<<"same";
}
cout<<endl;
}
return 0;
}
这里空空如也
有帮助,赞一个