提交时间:2024-02-08 18:59:47
运行 ID: 40247
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int i=1; double a,b; cin>>a; cin>>b; double x=(b/a)*100; while(i<=n-1){ double c,d; cin>>c; cin>>d; double y=(d/c)*100; if (y-x>5){ cout<<"better"<<endl; } else if (x-y>5){ cout<<"worse"<<endl; } else{ cout<<"same"<<endl; } i++; } return 0; }