114514拳击碎你的坤坤梦!!!
2025-06-07 11:16:37
发布于:浙江
7阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int ikun_x,ikun_y;
cin>>ikun_x>>ikun_y;
double ikun_percent=ikun_y*1.0/ikun_x;
for (int i=0;i<n-1;i++){
int x,y;
cin>>x>>y;
double putong=y*1.0/x;
double erf=putong-ikun_percent;
double Erf=ikun_percent-putong;
if (erf>0.05){
cout<<"better"<<endl;
}else if (Erf>0.05){
cout<<"worse"<<endl;
}else {
cout<<"same"<<endl;
}
}
return 0;
}
这里空空如也
有帮助,赞一个