提交时间:2024-01-22 15:30:39

运行 ID: 37650

#include <iostream> using namespace std; int main() { int n; double x,y,fspider,f; cin>>n; cin>>x>>y; fspider=y/x; n-=1; while(n--){ cin >>x >> y; f=y/x; if(f-fspider>0.05) cout<<"better\n"; else if(fspider-f>0.05) cout<<"worse\n"; else cout<<"same\n"; } return 0; }